1
0
angie-conv-image/image-entry.d/71-topmost-configs.sh
2024-09-17 14:11:00 +03:00

20 lines
336 B
Bash
Executable File

#!/bin/sh
set -f
. /image-entry.d/00-common.envsh
s=/etc/angie
d=${target_root}
comps=''
[ "${NGX_HTTP}" = 0 ] || comps="${comps} http"
[ "${NGX_MAIL}" = 0 ] || comps="${comps} mail"
[ "${NGX_STREAM}" = 0 ] || comps="${comps} stream"
for n in ${comps} ; do
ln_s "$s/ctx-$n.conf" "$d/"
ln_s "$s/mod-$n.conf" "$d/"
done
exit 0