Skip to content

Commit

Permalink
chore: add remote init script support for AIO image
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc committed Mar 12, 2024
1 parent aa7cc37 commit 0c1ee09
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/all-in-one/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ if [ "${PLATFORM_DEPLOYMENT:-}" == "true" ]; then
trap graceful_shutdown SIGINT
fi

REMOTE_INIT_SCRIPT=${REMOTE_INIT_SCRIPT:-}
if [ -n "$REMOTE_INIT_SCRIPT" ]; then
curl -fsSL "$REMOTE_INIT_SCRIPT" -o "/tmp/remote-init.sh" || true
if [ -f "/tmp/remote-init.sh" ]; then
chmod +x /tmp/remote-init.sh
bash /tmp/remote-init.sh
fi
fi


touch "$CONFIGURED_FLAG_PATH"
run_prelaunch_hooks
start_supervisor
Expand Down

0 comments on commit 0c1ee09

Please sign in to comment.