Update 20-folders.sh

This commit is contained in:
Alexandre
2023-04-21 12:49:46 +02:00
committed by GitHub
parent 1a4acea55d
commit cd66efa4ef

View File

@@ -24,6 +24,6 @@ chown -R "$PUID":"$PGID" "$DATA_LOCATION"
echo "... correcting official script"
# shellcheck disable=SC2013
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
chown -R "$PUID":"$PGID" /photos