2024-07-11 13:37:35 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -f
|
|
|
|
|
|
|
|
. /image-entry.d/00-common.envsh
|
|
|
|
|
|
|
|
s=/etc/angie
|
2024-07-15 16:15:47 +03:00
|
|
|
d=${target_root}
|
2024-07-11 13:37:35 +03:00
|
|
|
|
|
|
|
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
|