Reload crond on Synology DSM after installing crontab entries

This commit is contained in:
Janek Bevendorff 2014-10-08 01:31:39 +02:00
parent 6baf317f41
commit 1c2933e48c
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ if [[ $MODE == "install" ]]; then
if ! grep -q "/usr/sbin/rs-rotate-cron" /etc/crontab; then
if [[ "$DISTRIBUTION" == "Synology" ]]; then
cat ./server/etc/crontab_synology >> /etc/crontab
synoservicectl --reload crond
else
cat ./server/etc/crontab >> /etc/crontab
fi