29 lines
761 B
Bash
Executable File
29 lines
761 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## NB: NGX_DEBUG is set via image build script
|
|
|
|
set -a
|
|
|
|
NGX_HTTP=$(gobool_to_int "${NGX_HTTP:-1}" 1)
|
|
NGX_MAIL=$(gobool_to_int "${NGX_MAIL:-0}" 0)
|
|
NGX_STREAM=$(gobool_to_int "${NGX_STREAM:-0}" 0)
|
|
|
|
NGX_STRICT_LOAD=$(gobool_to_int "${NGX_STRICT_LOAD:-1}" 1)
|
|
|
|
NGX_CORE_MODULES="${NGX_CORE_MODULES:-}"
|
|
NGX_CORE_EVENTS_SNIPPETS="${NGX_CORE_EVENTS_SNIPPETS:-}"
|
|
NGX_CORE_SNIPPETS="${NGX_CORE_SNIPPETS:-}"
|
|
|
|
NGX_CORE_ENV="${NGX_CORE_ENV:-}"
|
|
|
|
NGX_PROCESS_STATIC=$(gobool_to_int "${NGX_PROCESS_STATIC:-0}" 0)
|
|
|
|
set +a
|
|
|
|
if [ "${NGX_HTTP}${NGX_MAIL}${NGX_STREAM}" = '000' ] ; then
|
|
log_always '======================================'
|
|
log_always 'WARNING!'
|
|
log_always 'Angie is almost completely TURNED OFF'
|
|
log_always '======================================'
|
|
fi
|