mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 23:01:49 +02:00
2018: adding option to clear codecs folder on addon start
This commit is contained in:
@@ -28,3 +28,8 @@ if ! bashio::config.true "skip_permissions_check" && [ "${PUID:-0}" != "0" ] &&
|
||||
chown -R "$PUID:$PGID" /share/plex
|
||||
chmod -R 777 /share/plex
|
||||
fi
|
||||
|
||||
# Clear Codecs folder if checked
|
||||
if ! bashio::config.true "clear_codecs_folder"; then
|
||||
rm -rf /share/plex/Plex\ Media\ Server/Codecs
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user