scale-catalog/update/plex.sh

12 lines
443 B
Bash
Raw Normal View History

2020-02-27 18:58:24 +00:00
iocage exec plex service plexmediaserver_plexpass stop
2020-02-27 19:02:37 +00:00
iocage exec plex pkg update && pkg upgrade -y
2020-02-27 18:58:24 +00:00
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/
iocage exec plex service plexmediaserver_plexpass start
sleep 10s
echo "Waiting 20s to stop plex"
iocage stop plex
sleep 10s
echo "Waiting 20s to start plex"
iocage start plex
iocage exec plex service plexmediaserver_plexpass start
echo "Finished installing plex"