mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -30,11 +30,11 @@ change_folders () {
|
|||||||
# Adapt sync.conf
|
# Adapt sync.conf
|
||||||
for FILE in "$ORIGINALLOCATION/sync.conf" "$CONFIGLOCATION/sync.conf" "/defaults/sync.conf"; do
|
for FILE in "$ORIGINALLOCATION/sync.conf" "$CONFIGLOCATION/sync.conf" "/defaults/sync.conf"; do
|
||||||
if [ "$TYPE" = "config_location" ]; then
|
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
|
fi
|
||||||
if [ "$TYPE" = "data_location" ]; then
|
if [ "$TYPE" = "data_location" ]; then
|
||||||
[ -f "$FILE" ] && jq --arg variable "$CONFIGVERSION" '.directory_root = $variable' "$FILE" | sponge "$FILE"
|
[ -f "$FILE" ] && jq --arg variable "$CONFIGLOCATION" '.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" '.files_default_path = $variable' "$FILE" | sponge "$FILE"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user