1
0
angie-conv-image/image-entry.d/51-topmost-configs.sh

20 lines
332 B
Bash
Raw Normal View History

2024-07-11 13:35:07 +03:00
#!/bin/sh
set -f
. /image-entry.d/00-common.envsh
s=/etc/angie
d=/run/angie
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