custom conf - fix wrong path with multisite configs
This commit is contained in:
parent
b2bb93bcf8
commit
fdcbc8d361
|
@ -55,9 +55,11 @@ if [ "$SWARM_MODE" != "yes" ] && [ "$KUBERNETES_MODE" != "yes" ] && [ "$AUTOCONF
|
|||
continue
|
||||
fi
|
||||
target="/data/configs/${type}/"
|
||||
if [ "$site" != "" ] && [ ! -d "/data/configs/${type}/${site}" ] ; then
|
||||
if [ "$site" != "" ] ; then
|
||||
target="${target}/${site}/"
|
||||
mkdir "$target"
|
||||
if [ ! -d "/data/configs/${type}/${site}" ] ; then
|
||||
mkdir "$target"
|
||||
fi
|
||||
fi
|
||||
target="${target}${name}.conf"
|
||||
log "ENTRYPOINT" "ℹ️" "Saving custom config to $target ..."
|
||||
|
|
Loading…
Reference in New Issue