skip permissions

This commit is contained in:
Alexandre
2025-07-31 15:41:12 +02:00
committed by GitHub
parent 08db19e4d3
commit e632e93f47

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bashio
################## ##################
# SYMLINK CONFIG # # SYMLINK CONFIG #
@@ -20,6 +20,8 @@ else
echo "Using existing config" echo "Using existing config"
fi fi
chown -R "$PUID:$PGID" /config/Library # Adapt permissions if needed
chown -R "$PUID:$PGID" /share/plex if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] && [ "${PGID:-0}" != "0" ]; then
chmod -R 777 /share/plex chown -R "$PUID:$PGID" /share/plex
chmod -R 777 /share/plex
fi