mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-18 18:38:17 +01:00
creation of the /share/resiliosync/folders and /share/resiliosync/mounted_folders
https://github.com/alexbelgium/hassio-addons/issues/333
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user