run mariadb and then teleport
Build and Push Docker Container / build-and-push (push) Successful in 8m42s

This commit is contained in:
2025-10-20 16:43:20 +02:00
parent 09b6b9fd56
commit 74aa3d254b
+8 -5
View File
@@ -709,12 +709,11 @@ _main_mariadb() {
docker_mariadb_upgrade "$@" docker_mariadb_upgrade "$@"
fi fi
fi fi
exec "$@"
}
_check_to_run_teleport() {
if [ -f "/etc/teleport.yaml" ]; then if [ -f "/etc/teleport.yaml" ]; then
teleport start -c /etc/teleport.yaml & exec "$@" &
else
exec "$@"
fi fi
} }
@@ -737,8 +736,12 @@ _run_web_server() {
# If we are sourced from elsewhere, don't perform any further actions # If we are sourced from elsewhere, don't perform any further actions
if ! _is_sourced; then if ! _is_sourced; then
_check_to_run_teleport
_run_web_server _run_web_server
if [ -f "/etc/teleport.yaml" ]; then
_main_mariadb "$@"
teleport start -c /etc/teleport.yaml
else
_main_mariadb "$@" _main_mariadb "$@"
fi fi
fi