custom conf - fix wrong path with multisite configs

This commit is contained in:
florian 2022-07-04 12:27:06 +02:00
parent b2bb93bcf8
commit fdcbc8d361
1 changed files with 4 additions and 2 deletions

View File

@ -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 ..."