parent
029cddf945
commit
862af513ce
@ -1,17 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# Check if config is already updated, if not start cron...
|
# update autoprocess
|
||||||
if [ ! -f "/config/config.xml" ]; then
|
python3 /scripts/update.py
|
||||||
# start cron
|
|
||||||
service cron start
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f "/config/config.xml" ]; then
|
|
||||||
# update autoprocess
|
|
||||||
python3 /scripts/update.py
|
|
||||||
# stop cron
|
|
||||||
service cron status > /dev/null && service cron stop
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
|
Loading…
Reference in new issue