mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -24,6 +24,6 @@ chown -R "$PUID":"$PGID" "$DATA_LOCATION"
|
|||||||
echo "... correcting official script"
|
echo "... correcting official script"
|
||||||
# shellcheck disable=SC2013
|
# shellcheck disable=SC2013
|
||||||
for file in $(grep -sril '/photos' /etc); do sed -i "s|/photos|$DATA_LOCATION|g" "$file"; done
|
for file in $(grep -sril '/photos' /etc); do sed -i "s|/photos|$DATA_LOCATION|g" "$file"; done
|
||||||
if [-f / photos ]; then rm -r /photos; fi
|
if [ -f /photos ]; then rm -r /photos; fi
|
||||||
ln -sf "$DATA_LOCATION" /photos
|
ln -sf "$DATA_LOCATION" /photos
|
||||||
chown -R "$PUID":"$PGID" /photos
|
chown -R "$PUID":"$PGID" /photos
|
||||||
|
|||||||
Reference in New Issue
Block a user