#!/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