10 lines
297 B
Plaintext
10 lines
297 B
Plaintext
|
#!/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
|