From 3408308c9d0a951fdf992eea640c157dbbf9e6bc Mon Sep 17 00:00:00 2001 From: Devin Slick Date: Fri, 23 Oct 2015 17:58:29 -0500 Subject: [PATCH] Removed redundant if, added sudo to service cmd --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index e130c82..36c362a 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -314,10 +314,10 @@ if [ "${AUTODELETE}" == "yes" ]; then fi if [ "${AUTOSTART}" == "yes" ]; then - if [ "${REDHAT}" == "no" ]; if [ "${AUTOINSTALL}" == "yes" ]; then + if [ "${REDHAT}" == "no" ]; then echo "The AUTOSTART [-s] option may not be needed on your distribution." fi - service plexmediaserver start + sudo service plexmediaserver start fi exit 0