mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 02:20:11 -08:00
added script to update and manage plexmediaserver service with nala
This commit is contained in:
14
update.sh
Executable file
14
update.sh
Executable 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
|
||||||
Reference in New Issue
Block a user