1
0
angie-conv-image/image-entry.d/12-core-env.envsh

35 lines
653 B
Plaintext
Raw Normal View History

2024-07-11 13:37:35 +03:00
#!/bin/sh
if [ -z "${NGX_CORE_ENV:-}" ] ; then
NGX_CORE_ENV='TZ MALLOC_ARENA_MAX'
else
unset __set_f
__set_f=
case "${-}" in
*f* ) __set_f=1 ;;
esac
[ -n "${__set_f}" ] || set -f
unset __env __have_tz __have_malloc
for __env in ${NGX_CORE_ENV} ; do
case "${__env}" in
TZ | TZ=* )
__have_tz=1
;;
MALLOC_ARENA_MAX | MALLOC_ARENA_MAX=* )
__have_malloc=1
;;
esac
done
unset __env
[ -n "${__have_malloc}" ] || NGX_CORE_ENV="MALLOC_ARENA_MAX ${NGX_CORE_ENV}"
[ -n "${__have_tz}" ] || NGX_CORE_ENV="TZ ${NGX_CORE_ENV}"
unset __have_tz __have_malloc
[ -n "${__set_f}" ] || set +f
unset __set_f
fi
export NGX_CORE_ENV