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