initial commit
This commit is contained in:
20
image-entry.d/71-topmost-configs.sh
Executable file
20
image-entry.d/71-topmost-configs.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
Reference in New Issue
Block a user