mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Also copy MAILTO from crontab
This commit is contained in:
parent
fa31574de7
commit
26c65ff711
1 changed files with 1 additions and 0 deletions
|
@ -312,6 +312,7 @@ configure_cron() {
|
|||
|
||||
save_cronjob() {
|
||||
CONFIGTEMP=$(mktemp /tmp/plexupdate.XXX)
|
||||
echo "$(grep "MAILTO=" /etc/crontab)" >> $CONFIGTEMP
|
||||
echo "$(grep "PATH=" /etc/crontab)" >> $CONFIGTEMP
|
||||
echo "#minute hour mday month wday who command" >> $CONFIGTEMP
|
||||
echo "$1" >> $CONFIGTEMP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue