Remove no longer necessary logic in the scheduler's entrypoint

This commit is contained in:
Théophile Diot 2024-08-08 11:56:52 +01:00
parent f9ddf48cd3
commit 41d3e6889f
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -34,17 +34,6 @@ elif [[ $(echo "$AUTOCONF_MODE" | awk '{print tolower($0)}') == "yes" ]] ; then
echo "Autoconf" > /usr/share/bunkerweb/INTEGRATION
fi
if ! grep -q "Docker" /usr/share/bunkerweb/INTEGRATION ; then
# Init database
get_env > "/tmp/variables.env"
/usr/share/bunkerweb/gen/save_config.py --variables /tmp/variables.env --init
# shellcheck disable=SC2181
if [ $? -ne 0 ] ; then
log "ENTRYPOINT" "❌" "Scheduler generator failed"
exit 1
fi
fi
# execute jobs
log "ENTRYPOINT" " " "Executing scheduler ..."
/usr/share/bunkerweb/scheduler/main.py &