mirror of
https://github.com/stilleshan/dockerfiles.git
synced 2026-04-23 08:30:16 +08:00
add php-nginx
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################
|
||||
## Run CLI_SCRIPT from environment variable
|
||||
#############################################
|
||||
|
||||
if [ -n "${CLI_SCRIPT}" ]; then
|
||||
if [ -n "$APPLICATION_USER" ]; then
|
||||
# Run as EFFECTIVE_USER
|
||||
shift
|
||||
exec gosu "${APPLICATION_USER}" ${CLI_SCRIPT} "$@"
|
||||
else
|
||||
# Run as root
|
||||
exec ${CLI_SCRIPT} "$@"
|
||||
fi
|
||||
else
|
||||
echo "[ERROR] No CLI_SCRIPT in in docker environment defined"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user