[fix] add PATH to cron

This commit is contained in:
alban 2019-09-07 21:06:01 +00:00
parent 13b46225b5
commit 296b1998a0

View File

@ -257,6 +257,7 @@ echo "\$(date) Restarted"
HEREDOC HEREDOC
chmod +x /usr/local/sbin/auto_upgrade_wekan chmod +x /usr/local/sbin/auto_upgrade_wekan
cat << HEREDOC > /etc/cron.d/auto_upgrade_wekan cat << HEREDOC > /etc/cron.d/auto_upgrade_wekan
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin/:/usr/local/bin/
0 0 * * * root /usr/local/sbin/auto_upgrade_wekan 0 0 * * * root /usr/local/sbin/auto_upgrade_wekan
HEREDOC HEREDOC