diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..58c91bf --- /dev/null +++ b/update.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# checks if the plexmediaserver.service is defined on this machine. stop it if it is. +if systemctl is-active --quiet plexmediaserver.service; then + sudo plex stop +fi + +sudo nala update +sudo nala upgrade -y + +# checks if the plexmediaserver.service is defined on this machine. start it if it is. +if systemctl is-enabled --quiet plexmediaserver.service; then + sudo plex start +fi