mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Update 21-folders.sh
This commit is contained in:
@@ -25,9 +25,11 @@ fi
|
|||||||
|
|
||||||
# Adapt permissions if needed
|
# Adapt permissions if needed
|
||||||
if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] && [ "${PGID:-0}" != "0" ]; then
|
if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] && [ "${PGID:-0}" != "0" ]; then
|
||||||
echo "... setting permissions"
|
echo "... setting permissions, this might take a long time. If it takes too long at each boot, you could instead activate skip_permissions_check in the addon options"
|
||||||
|
chmod -R 755 /share/plex
|
||||||
chown -R "$PUID:$PGID" /share/plex
|
chown -R "$PUID:$PGID" /share/plex
|
||||||
chmod -R 777 /share/plex
|
elif bashio::config.true "skip_permissions_check"; then
|
||||||
|
bashio::log.warning "... skipping permissions check as 'skip_permissions_check' is set"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clear Codecs folder if checked
|
# Clear Codecs folder if checked
|
||||||
|
|||||||
Reference in New Issue
Block a user