From 862af513ce63c632ee65adb99708d9f286655853 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 22 Mar 2020 19:52:28 -0400 Subject: [PATCH] Update 35-sma-config-update.bash --- root/etc/cont-init.d/35-sma-config-update.bash | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/root/etc/cont-init.d/35-sma-config-update.bash b/root/etc/cont-init.d/35-sma-config-update.bash index 1a5519d..992343f 100644 --- a/root/etc/cont-init.d/35-sma-config-update.bash +++ b/root/etc/cont-init.d/35-sma-config-update.bash @@ -1,17 +1,6 @@ #!/usr/bin/with-contenv bash -# Check if config is already updated, if not start cron... -if [ ! -f "/config/config.xml" ]; then - # 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 +# update autoprocess +python3 /scripts/update.py exit $?