mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-04 13:08:45 +02:00
Update 21-folders.sh
This commit is contained in:
@@ -25,11 +25,13 @@ 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"
|
||||||
chown -R "$PUID:$PGID" /share/plex
|
chown -R "$PUID:$PGID" /share/plex
|
||||||
chmod -R 777 /share/plex
|
chmod -R 777 /share/plex
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clear Codecs folder if checked
|
# Clear Codecs folder if checked
|
||||||
if ! bashio::config.true "clear_codecs_folder"; then
|
if bashio::config.true "clear_codecs_folder" && [[ -d "/share/plex/Plex Media Server/Codecs" ]]; then
|
||||||
rm -rf /share/plex/Plex\ Media\ Server/Codecs
|
echo "... deleting codecs folder"
|
||||||
|
rm -r "/share/plex/Plex Media Server/Codecs"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user