mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-14 09:12:59 -07:00
Use of AUTOINSTALL/AUTOSTART when not root is an error
So we should actually fail early instead of continuing
This commit is contained in:
parent
59995961bb
commit
acb8cc2fb8
1 changed files with 1 additions and 0 deletions
|
@ -398,6 +398,7 @@ fi
|
||||||
|
|
||||||
if [ "${AUTOINSTALL}" = "yes" -o "${AUTOSTART}" = "yes" ] && [ ${EUID} -ne 0 ]; then
|
if [ "${AUTOINSTALL}" = "yes" -o "${AUTOSTART}" = "yes" ] && [ ${EUID} -ne 0 ]; then
|
||||||
error "You need to be root to use AUTOINSTALL/AUTOSTART option."
|
error "You need to be root to use AUTOINSTALL/AUTOSTART option."
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue