Commit bca5e217 authored by Natanael Copa's avatar Natanael Copa

setup-alpine: fix backwards compat for cron

the crond service was previously named 'cron'. support both for
backwards compat.
parent 2218e13c
...@@ -146,8 +146,11 @@ fi ...@@ -146,8 +146,11 @@ fi
rc-update --quiet add networking boot rc-update --quiet add networking boot
rc-update --quiet add urandom boot rc-update --quiet add urandom boot
rc-update --quiet add acpid for svc in acpid cron crond; do
rc-update --quiet add crond if rc-service --exists $svc; then
rc-update --quiet add $svc
fi
done
# enable new hostname # enable new hostname
/etc/init.d/hostname --quiet restart /etc/init.d/hostname --quiet restart
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment