mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
2018: adding option to clear codecs folder on addon start
This commit is contained in:
@@ -173,6 +173,7 @@
|
||||
"localdisks": "str?",
|
||||
"networkdisks": "str?",
|
||||
"skip_permissions_check": "bool?",
|
||||
"clear_codecs_folder": "bool?",
|
||||
"smbv1": "bool?"
|
||||
},
|
||||
"slug": "plex_nas",
|
||||
|
||||
@@ -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