creation of the /share/resiliosync/folders and /share/resiliosync/mounted_folders

https://github.com/alexbelgium/hassio-addons/issues/333
This commit is contained in:
Alexandre
2022-05-19 16:19:52 +02:00
committed by GitHub
parent 22614b69c1
commit f955226c48

View File

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