mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
move around cron file creation
Easier to see what /etc/cron.d/plexupdate will look like
This commit is contained in:
parent
26c65ff711
commit
a83f077d4a
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue