1
0
angie-conv-image/image-entry.d/53-expand-templates.sh

18 lines
329 B
Bash
Executable File

#!/bin/sh
set -ef
. /image-entry.d/00-common.envsh
dirs='conf mod modules njs site snip'
[ "${NGX_PROCESS_STATIC}" = 0 ] || dirs="${dirs} static"
for n in ${dirs} ; do
merged_dir="${merged_root}/$n"
[ -d "${merged_dir}" ] || continue
expand_dir_envsubst "${merged_dir}/"
expand_dir_jinja "${merged_dir}/"
done
exit 0