Docker-PHP/marshall/installers/100_cron.sh
Matthew Baggett 49c06822ee
Feature/rebuild for better caching (#3)
* Rebuilding for better caching

* Rebuilding for better caching. Squash this commit.

* Paths to dockerfiles changed.

* Rebuilding for better caching. Squash this commit.

* Rebuilding for better caching. Squash this commit.

* Refactoring

* Refactoring

* fixing the screaming about duplicates in apt sources.

* Vanity tagging

* Vanity tagging

* Try vanity again.

* re-enable all versions and variants
2021-05-29 22:54:10 +02:00

19 lines
589 B
Bash
Executable file

#!/bin/bash
source /installers/config
$APT_GET cron
chmod 600 /etc/crontab
mkdir -p /etc/service/cron
mv /etc/service/cron/cron.runit /etc/service/cron/run
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