2019-06-11 14:59:58 +00:00
|
|
|
#!/bin/bash
|
2024-02-07 15:21:14 +00:00
|
|
|
# shellcheck disable=SC1091
|
2019-08-14 15:34:54 +00:00
|
|
|
source /installers/config
|
2024-02-07 15:21:14 +00:00
|
|
|
${APT_GET} cron
|
2019-06-11 14:59:58 +00:00
|
|
|
|
|
|
|
chmod 600 /etc/crontab
|
|
|
|
|
2019-08-14 15:34:54 +00:00
|
|
|
mkdir -p /etc/service/cron
|
|
|
|
mv /etc/service/cron/cron.runit /etc/service/cron/run
|
2019-06-11 14:59:58 +00:00
|
|
|
chmod +x /etc/service/cron/run
|
|
|
|
# Fix cron issues in 0.9.19, see also #345: https://github.com/phusion/baseimage-docker/issues/345
|
|
|
|
sed -i 's/^\s*session\s\+required\s\+pam_loginuid.so/# &/' /etc/pam.d/cron
|
|
|
|
|
|
|
|
## Remove useless cron entries.
|
|
|
|
# Checks for lost+found and scans for mtab.
|
|
|
|
rm -f /etc/cron.daily/standard
|
|
|
|
rm -f /etc/cron.daily/upstart
|
|
|
|
rm -f /etc/cron.daily/dpkg
|
|
|
|
rm -f /etc/cron.daily/password
|
|
|
|
rm -f /etc/cron.weekly/fstrim
|