scale-catalog/jails/plex/update.sh
Kjeld Schouten-Lebbing d877424c8c Rename plexpass to beta and document the beta flag (#77)
* Rename plexpass to beta and document the beta flag (Fixes: #54)

* Comment cleanup
2020-04-26 14:53:59 +02:00

23 lines
827 B
Bash
Executable File

#!/usr/local/bin/bash
# This file contains the update script for Plex
# Run different update procedures depending on Plex vs Plex Beta
if [ "$plex_plexpass" == "true" ]; then
echo "beta enabled in config.yml... using plex beta for update..."
iocage exec plex service plexmediaserver_plexpass stop
# Plex is updated using PKG already, this is mostly a placeholder
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/
iocage exec plex service plexmediaserver_plexpass restart
else
echo "beta disabled in config.yml... NOT using plex beta for update..."
iocage exec plex service plexmediaserver stop
# Plex is updated using PKG already, this is mostly a placeholder
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver/
iocage exec plex service plexmediaserver restart
fi