From f955226c487cd472e06621ccf520f16412a126ff Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 19 May 2022 16:19:52 +0200 Subject: [PATCH] creation of the /share/resiliosync/folders and /share/resiliosync/mounted_folders https://github.com/alexbelgium/hassio-addons/issues/333 --- resiliosync/rootfs/etc/cont-init.d/00-folders.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index 2d5f287ed..0e458f5e8 100644 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -34,7 +34,9 @@ change_folders () { if [ "$TYPE" = "data_location" ]; then [ -f "$ORIGINALLOCATION"/sync.conf ] && sed "s|$(jq -r .directory_root "$ORIGINALLOCATION"/sync.conf)|$CONFIGLOCATION/|g" "$ORIGINALLOCATION"/sync.conf [ -f "$CONFIGLOCATION"/sync.conf ] && sed "s|$(jq -r .directory_root "$CONFIGLOCATION"/sync.conf)|$CONFIGLOCATION/|g" "$CONFIGLOCATION"/sync.conf - [ -f "/defaults/sync.conf" ] && sed "s|$(jq -r .directory_root "/defaults"/sync.conf)|$CONFIGLOCATION/|g" /defaults/sync.conf + [ -f "/defaults/sync.conf" ] && sed "s|$(jq -r .directory_root "/defaults"/sync.conf)|$CONFIGLOCATION/|g" /defaults/sync.conf + mkdir -p "$CONFIGLOCATION"/folders + mkdir -p "$CONFIGLOCATION"/mounted_folders fi # Create folders