Skip to content

Commit

Permalink
Remove no longer necessary logic in the scheduler's entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Aug 8, 2024
1 parent f9ddf48 commit 41d3e68
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/scheduler/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 41d3e68

Please sign in to comment.