Add STARTUP_SCRIPT option to execute extra script during container start

This commit is contained in:
Dmitry Nezhevenko 2024-12-23 10:22:57 +01:00
parent 6b01356241
commit 40c644fc2c
2 changed files with 13 additions and 0 deletions

View file

@ -34,6 +34,10 @@ if [[ -z "$LOGIN_SERVER" ]]; then
LOGIN_SERVER=https://controlplane.tailscale.com
fi
if [[ -n "$STARTUP_SCRIPT" ]]; then
bash "$STARTUP_SCRIPT" || exit $?
fi
# Start tailscaled and bring tailscale up
/usr/local/bin/tailscaled ${TAILSCALED_ARGS} &
until /usr/local/bin/tailscale up \