mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-19 22:09:14 +02:00
Only if not root
This commit is contained in:
@@ -61,6 +61,9 @@ fi
|
|||||||
PUID="$(bashio::config "PUID")"
|
PUID="$(bashio::config "PUID")"
|
||||||
PGID="$(bashio::config "PGID")"
|
PGID="$(bashio::config "PGID")"
|
||||||
|
|
||||||
fix_owner_if_needed "/share/plex" "$PUID" "$PGID"
|
# Only run fixes if not root (UID/GID != 0)
|
||||||
fix_owner_if_needed "/share/plex/Library" "$PUID" "$PGID"
|
if [ "$PUID" != "0" ] && [ "$PGID" != "0" ]; then
|
||||||
fix_mode_if_needed "/share/plex" 777
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user