From ab23bdf9d76e80638f4b049e664f4714f9c6db7a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 19 May 2022 17:32:38 +0200 Subject: [PATCH] Update 00-folders.sh --- resiliosync/rootfs/etc/cont-init.d/00-folders.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index 81b7ce4f8..65834425a 100644 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -30,11 +30,11 @@ change_folders () { # Adapt sync.conf for FILE in "$ORIGINALLOCATION/sync.conf" "$CONFIGLOCATION/sync.conf" "/defaults/sync.conf"; do if [ "$TYPE" = "config_location" ]; then - [ -f "$FILE" ] && jq --arg variable "$CONFIGVERSION" '.storage_path = $variable' "$FILE" | sponge "$FILE" + [ -f "$FILE" ] && jq --arg variable "$CONFIGLOCATION" '.storage_path = $variable' "$FILE" | sponge "$FILE" fi if [ "$TYPE" = "data_location" ]; then - [ -f "$FILE" ] && jq --arg variable "$CONFIGVERSION" '.directory_root = $variable' "$FILE" | sponge "$FILE" - [ -f "$FILE" ] && jq --arg variable "$CONFIGVERSION" '.files_default_path = $variable' "$FILE" | sponge "$FILE" + [ -f "$FILE" ] && jq --arg variable "$CONFIGLOCATION" '.directory_root = $variable' "$FILE" | sponge "$FILE" + [ -f "$FILE" ] && jq --arg variable "$CONFIGLOCATION" '.files_default_path = $variable' "$FILE" | sponge "$FILE" fi done