21 lines
367 B
Bash
Executable File
21 lines
367 B
Bash
Executable File
#!/bin/sh
|
|
set -f
|
|
|
|
. /run/ngx/iep/00-common.envsh
|
|
|
|
s="${target_root}"
|
|
d="${volume_root}/conf.ctx"
|
|
|
|
comps=
|
|
[ "${NGX_HTTP}" = 0 ] || comps="${comps} http"
|
|
[ "${NGX_MAIL}" = 0 ] || comps="${comps} mail"
|
|
[ "${NGX_STREAM}" = 0 ] || comps="${comps} stream"
|
|
|
|
install -d "$d"
|
|
for n in ${comps} ; do
|
|
ln -s "$s/ctx-$n.conf" "$d/"
|
|
ln -s "$s/mod-$n.conf" "$d/"
|
|
done
|
|
|
|
exit 0
|