OXIESEC PANEL
- Current Dir:
/
/
etc
/
cron.daily
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/20/2025 05:23:23 PM
rwxr-xr-x
📄
.placeholder
102 bytes
11/16/2017 05:29:19 AM
rw-r--r--
📄
apache2
539 bytes
07/16/2019 06:14:45 PM
rwxr-xr-x
📄
apport
376 bytes
11/20/2017 04:39:28 PM
rwxr-xr-x
📄
apt-compat
1.44 KB
04/20/2018 10:08:18 AM
rwxr-xr-x
📄
bsdmainutils
355 bytes
12/29/2017 09:02:08 AM
rwxr-xr-x
📄
dpkg
1.15 KB
11/02/2017 10:28:26 PM
rwxr-xr-x
📄
logrotate
372 bytes
08/21/2017 05:38:26 PM
rwxr-xr-x
📄
man-db
1.04 KB
04/07/2018 10:39:15 AM
rwxr-xr-x
📄
mdadm
539 bytes
01/30/2019 02:51:36 PM
rwxr-xr-x
📄
mlocate
538 bytes
03/01/2018 04:07:16 PM
rwxr-xr-x
📄
passwd
249 bytes
01/25/2018 03:09:22 PM
rwxr-xr-x
📄
popularity-contest
3.4 KB
02/21/2018 04:44:56 AM
rwxr-xr-x
📄
update-notifier-common
214 bytes
11/12/2018 03:57:28 PM
rwxr-xr-x
Editing: apt-compat
Close
#!/bin/sh set -e # Systemd systems use a systemd timer unit which is preferable to # run. We want to randomize the apt update and unattended-upgrade # runs as much as possible to avoid hitting the mirrors all at the # same time. The systemd time is better at this than the fixed # cron.daily time if [ -d /run/systemd/system ]; then exit 0 fi check_power() { # laptop check, on_ac_power returns: # 0 (true) System is on main power # 1 (false) System is not on main power # 255 (false) Power status could not be determined # Desktop systems always return 255 it seems if which on_ac_power >/dev/null 2>&1; then if on_ac_power; then : elif [ $? -eq 1 ]; then return 1 fi fi return 0 } # sleep for a random interval of time (default 30min) # (some code taken from cron-apt, thanks) random_sleep() { RandomSleep=1800 eval $(apt-config shell RandomSleep APT::Periodic::RandomSleep) if [ $RandomSleep -eq 0 ]; then return fi if [ -z "$RANDOM" ] ; then # A fix for shells that do not have this bash feature. RANDOM=$(( $(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32767 )) fi TIME=$(($RANDOM % $RandomSleep)) sleep $TIME } # delay the job execution by a random amount of time random_sleep # ensure we don't do this on battery check_power || exit 0 # run daily job exec /usr/lib/apt/apt.systemd.daily