Add PATH variable to cron file

This commit is contained in:
Max 2019-06-19 15:19:24 -04:00
commit 35fea18230
No known key found for this signature in database
GPG key ID: 0BDA73476CD8AB10

View file

@ -287,7 +287,7 @@ configure_cron() {
#changes go here
schedule=$(grep "cron.daily" crontab)
if [ -z "$schedule" ]; then
schedule="0 4 * * * "
schedule="0 4 * * * "
else
schedule=${schedule%%root*}
fi
@ -312,6 +312,7 @@ configure_cron() {
save_cronjob() {
CONFIGTEMP=$(mktemp /tmp/plexupdate.XXX)
echo "$(grep "PATH=" /etc/crontab)" >> $CONFIGTEMP
echo "#minute hour mday month wday who command" >> $CONFIGTEMP
echo "$1" >> $CONFIGTEMP