From a83f077d4ae0b18ab0b7ada14095c7c332d68fe8 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 19 Jun 2019 15:48:37 -0400 Subject: [PATCH] move around cron file creation Easier to see what /etc/cron.d/plexupdate will look like --- extras/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/installer.sh b/extras/installer.sh index 9545f16..538726f 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -291,7 +291,7 @@ configure_cron() { else schedule=${schedule%%root*} fi - save_cronjob "${schedule}root $(which sh) ${FULL_PATH}/extras/cronwrapper" "$CRONWRAPPER" + save_cronjob "$schedule" "$CRONWRAPPER" echo "done" elif [ -f "$CRONWRAPPER" -o -f "$CONFIGCRON" ]; then echo @@ -315,7 +315,7 @@ save_cronjob() { echo "$(grep "MAILTO=" /etc/crontab)" >> $CONFIGTEMP echo "$(grep "PATH=" /etc/crontab)" >> $CONFIGTEMP echo "#minute hour mday month wday who command" >> $CONFIGTEMP - echo "$1" >> $CONFIGTEMP + echo "${1}root $(which sh) ${FULL_PATH}/extras/cronwrapper" >> $CONFIGTEMP save_config_tmp "$CONFIGTEMP" "$2" }