14 lines
241 B
Bash
14 lines
241 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -Eeo pipefail
|
||
|
|
||
|
if [ -f "/invoke_initial_script.sh" ]; then
|
||
|
chmod +x /invoke_initial_script.sh
|
||
|
source /invoke_initial_script.sh
|
||
|
fi
|
||
|
|
||
|
if [[ "$1" = 'app' ]]; then
|
||
|
exec nginx -g 'daemon off;'
|
||
|
else
|
||
|
exec "$@"
|
||
|
fi
|