A method to configure plex options which would otherwise require gui interaction.
Normally this script is not called directly, but rather during deployment via a customized plex image or helm chart.
See ./settings for available settings which can be configured, note the folder name(s).
To configure a setting specify the folder name as an environment variable prepended with 'PLEX_CONFIG_' and then run plex-config.sh.
example.sh
#!/bin/bash
PLEX_CONFIG_NETWORK_ENABLE_RELAY=false
PLEX_CONFIG_TRANSCODER_DEFAULT_THROTTLE_BUFFER=600
PLEX_CONFIG_UNIQUE_REMOVE_PAUSE_ARROW_OVERLAY=true
./plex-config.sh
output
Configuring transcoder_default_throttle_buffer ... success, done
Configuring network_enable_relay ... success, done
Configuring unique_remove_pause_arrow_overlay ... success, done
- scripts must be idempotent
- scripts must verify the change was made successfully and return an appropriate errorcode:
- 0 = success
- 1 = failed
- 2 = feature not supported