mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-10 09:35:58 +02:00
Update 00-folders.sh
This commit is contained in:
@@ -26,6 +26,12 @@ change_folders () {
|
|||||||
grep -rl "$ORIGINALLOCATION" /etc/services.d | xargs sed -i "s|$ORIGINALLOCATION|$CONFIGLOCATION|g"
|
grep -rl "$ORIGINALLOCATION" /etc/services.d | xargs sed -i "s|$ORIGINALLOCATION|$CONFIGLOCATION|g"
|
||||||
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /etc/cont-init.d/10-adduser
|
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /etc/cont-init.d/10-adduser
|
||||||
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /defaults/*
|
sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" /defaults/*
|
||||||
|
#if [ -f $ORIGINALLOCATION/sync.conf ]; then
|
||||||
|
# sed "s|$(jq -r .storage_path "$ORIGINALLOCATION"/sync.conf)||g" $ORIGINALLOCATION/sync.conf
|
||||||
|
#fi
|
||||||
|
#if [ -f $CONFIGLOCATION/sync.conf ]; then
|
||||||
|
# sed "s|||g" $CONFIGLOCATION/sync.conf
|
||||||
|
#fi
|
||||||
|
|
||||||
# Create folders
|
# Create folders
|
||||||
[ ! -d "$CONFIGLOCATION" ] && echo "Creating $CONFIGLOCATION" && mkdir -p "$CONFIGLOCATION"
|
[ ! -d "$CONFIGLOCATION" ] && echo "Creating $CONFIGLOCATION" && mkdir -p "$CONFIGLOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user