Make cron subshell execute manage.py directly - it is executable anyway

This commit is contained in:
Kumi 2019-02-01 09:08:48 +00:00
parent 61574c5451
commit 9fceca16a4

View file

@ -1,3 +1,3 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * root (cd /opt/vpnmanager; python3 manage.py runcrons)
*/5 * * * * root (cd /opt/vpnmanager; ./manage.py runcrons)