added script to update and manage plexmediaserver service with nala

This commit is contained in:
Peter Wood
2025-03-05 14:29:22 +00:00
parent 39e5958c6e
commit afe3f98e26

14
update.sh Executable file
View File

@@ -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