Use of AUTOINSTALL/AUTOSTART when not root is an error

So we should actually fail early instead of continuing
This commit is contained in:
Henric Andersson 2017-02-16 19:50:10 -08:00
parent 59995961bb
commit acb8cc2fb8

View file

@ -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