13 lines
337 B
Bash
Executable File
13 lines
337 B
Bash
Executable File
#!/bin/sh
|
|
set -ef
|
|
|
|
## hardcoded configuration directory
|
|
d=/run/ngx/conf
|
|
|
|
## reparse PATH: remove /usr/local/sbin
|
|
PATH=$(printf 'x:%s:x' "${PATH}" | sed -zE 's#:/usr/local/sbin/?:#:#g;s/^x://;s/:x$//')
|
|
export PATH
|
|
|
|
exec env -C $d /usr/sbin/angie -p $d -c $d/angie.conf -e stderr --log-level=info -g 'error_log stderr info;' "$@"
|
|
exit 126
|