1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 20:38:58 +00:00

Merge pull request #348 from milinnovations/fix_cron_pam

Provided a fix for cron not working out of the box.
This commit is contained in:
Travis Rowland
2017-03-19 01:20:24 -07:00
committed by GitHub

View File

@@ -7,6 +7,8 @@ $minimal_apt_get_install cron
mkdir /etc/service/cron mkdir /etc/service/cron
chmod 600 /etc/crontab chmod 600 /etc/crontab
cp /bd_build/services/cron/cron.runit /etc/service/cron/run cp /bd_build/services/cron/cron.runit /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. ## Remove useless cron entries.
# Checks for lost+found and scans for mtab. # Checks for lost+found and scans for mtab.