mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 12:29:07 +00:00
* disable e2fsprogs cron * fix linebreak --------- Co-authored-by: Skyler Mäntysaari <samip5@users.noreply.github.com>
21 lines
623 B
Bash
Executable File
21 lines
623 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
source /bd_build/buildconfig
|
|
set -x
|
|
|
|
$minimal_apt_get_install cron
|
|
mkdir /etc/service/cron
|
|
chmod 600 /etc/crontab
|
|
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.
|
|
# 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
|
|
rm -f /etc/cron.d/e2scrub_all
|