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 #
@@ -20,6 +20,8 @@ else
echo "Using existing config"
fi
chown -R "$PUID:$PGID" /config/Library
chown -R "$PUID:$PGID" /share/plex
chmod -R 777 /share/plex
# Adapt permissions if needed
if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] && [ "${PGID:-0}" != "0" ]; then
chown -R "$PUID:$PGID" /share/plex
chmod -R 777 /share/plex
fi