mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-31 12:00:07 -07:00
Clean up the if statements in AUTOSTART
This commit is contained in:
parent
bed1a7bdef
commit
4c48237be5
1 changed files with 2 additions and 3 deletions
|
@ -314,13 +314,12 @@ if [ "${AUTODELETE}" == "yes" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${AUTOSTART}" == "yes" ]; then
|
if [ "${AUTOSTART}" == "yes" ]; then
|
||||||
if [ "${REDHAT}" == "no" ]; then
|
|
||||||
echo "The AUTOSTART [-s] option may not be needed on your distribution."
|
|
||||||
fi
|
|
||||||
id | grep 'uid=0(' 2>&1 >/dev/null
|
id | grep 'uid=0(' 2>&1 >/dev/null
|
||||||
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
|
||||||
|
elif [ "${REDHAT}" == "no" ]; then
|
||||||
|
echo "The AUTOSTART [-s] option may not be needed on your distribution."
|
||||||
fi
|
fi
|
||||||
sudo service plexmediaserver start
|
sudo service plexmediaserver start
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue