From: Alex Athanasopoulos Date: Tue, 6 Sep 2016 14:09:55 +0000 (+0300) Subject: templates: use correct cron version in alpine template X-Git-Tag: lxc-2.1.0~330^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1173%2Fhead;p=thirdparty%2Flxc.git templates: use correct cron version in alpine template Signed-off-by: Alex Athanasopoulos --- diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 988f10937..a6b33631c 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -364,8 +364,12 @@ setup_services() { done # default runlevel - for svc_name in networking cron; do - ln -s /etc/init.d/$svc_name etc/runlevels/default/$svc_name + for svc_name in networking cron crond; do + # issue 1164: alpine renamed cron to crond + # Use the one that exists. + if [ -e etc/init.d/$svc_name ]; then + ln -s /etc/init.d/$svc_name etc/runlevels/default/$svc_name + fi done }