mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-16 04:19:13 +02:00
Adapt to lsio v3
https://github.com/alexbelgium/hassio-addons/issues/619
This commit is contained in:
@@ -24,10 +24,7 @@ change_folders () {
|
|||||||
|
|
||||||
# Modify files
|
# Modify files
|
||||||
echo "Adapting files"
|
echo "Adapting files"
|
||||||
grep -rl "$ORIGINALLOCATION" /etc/cont-init.d | xargs sed -i "s|$ORIGINALLOCATION|$CONFIGLOCATION|g" || true
|
for file in $(grep -sril "$ORIGINALLOCATION" /etc /defaults); do sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" $file; done
|
||||||
grep -rl "$ORIGINALLOCATION" /etc/services.d | xargs sed -i "s|$ORIGINALLOCATION|$CONFIGLOCATION|g" || true
|
|
||||||
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /etc/cont-init.d/10-adduser || true
|
|
||||||
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /defaults/* || true
|
|
||||||
|
|
||||||
# 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
|
||||||
@@ -71,3 +68,5 @@ change_folders () {
|
|||||||
change_folders "$(bashio::config 'config_location')" "/share/resiliosync_config" "config_location"
|
change_folders "$(bashio::config 'config_location')" "/share/resiliosync_config" "config_location"
|
||||||
change_folders "$(bashio::config 'data_location')" "/share/resiliosync" "data_location"
|
change_folders "$(bashio::config 'data_location')" "/share/resiliosync" "data_location"
|
||||||
change_folders "$(bashio::config 'downloads_location')" "/share/resiliosync_downloads" "downloads_location"
|
change_folders "$(bashio::config 'downloads_location')" "/share/resiliosync_downloads" "downloads_location"
|
||||||
|
|
||||||
|
mkdir -p /share/resiliosync
|
||||||
|
|||||||
Reference in New Issue
Block a user