add start stop after timeout

This commit is contained in:
kjeld Schouten-Lebbing 2020-02-24 16:21:49 +01:00
parent 0262cc4449
commit 58193ec3ae

11
plex.sh
View File

@ -16,7 +16,10 @@ iocage exec plex pkg update -y
iocage exec plex pkg upgrade -y iocage exec plex pkg upgrade -y
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/ iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/
iocage exec plex service plexmediaserver_plexpass start iocage exec plex service plexmediaserver_plexpass start
sleep 20s sleep 10s
echo "Waiting 20s to start" echo "Waiting 20s to stop plex"
iocage exec plex service plexmediaserver_plexpass start iocage stop plex
iocage exec plex service plexmediaserver_plexpass status sleep 10s
echo "Waiting 20s to start plex"
iocage start plex
echo "Finished installing plex"