mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 17:38:17 +01:00
Update 00-folders.sh
This commit is contained in:
@@ -25,6 +25,11 @@ change_folders (change_fold) {
|
||||
# Modify files
|
||||
sed -i "s/$ORIGINALLOCATION/$CONFIGLOCATION|| true/g" /etc/cont-init.d/10-adduser || true
|
||||
|
||||
grep -rl "$ORIGINALLOCATION" /etc/cont-init.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" /defaults/*
|
||||
|
||||
# Create folders
|
||||
[ ! -d "$CONFIGLOCATION" ] && echo "Creating $CONFIGLOCATION" && mkdir -p "$CONFIGLOCATION"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user