mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
custom conf - fix wrong path with multisite configs
This commit is contained in:
parent
b2bb93bcf8
commit
fdcbc8d361
1 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue