mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
fix: update update.sh to use custom plex script for stopping and starting the service
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# checks if the plexmediaserver.service is defined on this machine. stop it if it is.
|
# checks if the plexmediaserver.service is defined on this machine. stop it if it is.
|
||||||
if systemctl is-active --quiet plexmediaserver.service; then
|
if systemctl is-active --quiet plexmediaserver.service; then
|
||||||
sudo plex stop
|
sudo /home/acedanger/shell/plex.sh stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo nala update
|
sudo nala update
|
||||||
@@ -10,5 +10,5 @@ sudo nala upgrade -y
|
|||||||
|
|
||||||
# checks if the plexmediaserver.service is defined on this machine. start it if it is.
|
# checks if the plexmediaserver.service is defined on this machine. start it if it is.
|
||||||
if systemctl is-enabled --quiet plexmediaserver.service; then
|
if systemctl is-enabled --quiet plexmediaserver.service; then
|
||||||
sudo plex start
|
sudo /home/acedanger/shell/plex.sh start
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user