Only if not root

This commit is contained in:
Alexandre
2025-07-29 21:38:42 +02:00
committed by GitHub
parent 12bb558888
commit bd0fbdd007

View File

@@ -61,6 +61,9 @@ fi
PUID="$(bashio::config "PUID")"
PGID="$(bashio::config "PGID")"
fix_owner_if_needed "/share/plex" "$PUID" "$PGID"
fix_owner_if_needed "/share/plex/Library" "$PUID" "$PGID"
fix_mode_if_needed "/share/plex" 777
# Only run fixes if not root (UID/GID != 0)
if [ "$PUID" != "0" ] && [ "$PGID" != "0" ]; then
fix_owner_if_needed "/share/plex" "$PUID" "$PGID"
fix_owner_if_needed "/share/plex/Library" "$PUID" "$PGID"
fix_mode_if_needed "/share/plex" 777
fi