svchelper/app/bin/debug
2024-04-23 04:34:16 +02:00

10 lines
297 B
Bash

#!/usr/bin/env bash
"$APP" onearg "$@"
"$APP" exist "$1"
source "$APP" service_env "$1"
if ! [ "$SERVICE_RUN" = "" ]; then
SERVICE_RUN_RAW="cd \"$SERVICE_CD\"; echo \"* pwd: \$PWD\"; exec ${SERVICE_RUN//"/\\"}"
echo "* bash: $SERVICE_RUN_RAW"
gosu "$SERVICE_USER" bash -c "$SERVICE_RUN_RAW"
fi