Skip to content

Commit

Permalink
Only setup cronie, don't install
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Deschênes committed Nov 12, 2019
1 parent 45113f5 commit ee60302
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions bin/docker-cron
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ function _log {
}

setup () {
export ENV DEBIAN_FRONTEND=noninteractive

# Install
sed -i "s/jessie main/jessie main contrib non-free/" /etc/apt/sources.list
echo "deb http://deb.debian.org/debian/ experimental main" > /etc/apt/sources.list.d/experimental.list

apt-get update
apt-get install -y --no-install-recommends cronie busybox-syslogd
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# cronie
# - do not send emails (-m off)
# - redirect stdout to syslog (-s)
Expand All @@ -28,12 +17,7 @@ setup () {
# - disable cron.{hourly,daily,weekly}
echo '' > /etc/crontab

# busybox-syslogd
# - do not save log to file (-O /dev/null)
sed -i 's|SYSLOG_OPTS="-C128"|SYSLOG_OPTS="-C128 -O /dev/null"|' /etc/default/busybox-syslogd

touch /etc/default/locale

}

link () {
Expand Down Expand Up @@ -84,9 +68,7 @@ link () {
}

run () {
service busybox-syslogd start > /dev/null
service cronie start > /dev/null
logread -f
}

if [ "$(type -t ${@})" == 'function' ]
Expand Down

0 comments on commit ee60302

Please sign in to comment.