From 6de8c36d7262898fcbd1fccdbf98c121bcc78db0 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 27 Oct 2015 12:39:13 -0500 Subject: [PATCH] Added comments --- plexupdate.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index cf7b6bd..19483cf 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -321,10 +321,12 @@ if [ "${AUTOSTART}" == "yes" ]; then elif [ "${REDHAT}" == "no" ]; then echo "The AUTOSTART [-s] option may not be needed on your distribution." fi + + # Check for systemd if [ -f "/bin/systemctl" ]; then - sudo systemctl start plexmediaserver.service + systemctl start plexmediaserver.service else - sudo service plexmediaserver start + service plexmediaserver start fi fi