Update plexupdate.sh

This commit is contained in:
Devin Slick 2015-10-23 19:58:21 -05:00
commit 6ccfc08bd2

View file

@ -320,7 +320,7 @@ if [ "${AUTOSTART}" == "yes" ]; then
sudo service plexmediaserver start sudo service plexmediaserver start
fi fi
if [ "${AUTOSTART}" == "yes" then if [ "${AUTOSTART}" == "yes"]; then
if [ "${REDHAT}" == "no" ]; then if [ "${REDHAT}" == "no" ]; then
echo "The AUTOSTART [-s] option may not be needed on your distribution." echo "The AUTOSTART [-s] option may not be needed on your distribution."
fi fi
@ -328,8 +328,7 @@ if [ "${AUTOSTART}" == "yes" then
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Error: You need to be root to use autoinstall option." echo "Error: You need to be root to use autoinstall option."
exit 1 exit 1
fi elif [ "${REDHAT}" == "no" ]; then
if [ "${REDHAT}" == "no" ]; then
echo "The AUTOSTART [-s] option may not be needed on your distribution." echo "The AUTOSTART [-s] option may not be needed on your distribution."
fi fi
sudo service plexmediaserver start sudo service plexmediaserver start