From acb8cc2fb8eef96a48c87ac8d3e9284e4d7549d8 Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Thu, 16 Feb 2017 19:50:10 -0800 Subject: [PATCH] Use of AUTOINSTALL/AUTOSTART when not root is an error So we should actually fail early instead of continuing --- plexupdate.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/plexupdate.sh b/plexupdate.sh index 02bf428..727f4cb 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -398,6 +398,7 @@ fi if [ "${AUTOINSTALL}" = "yes" -o "${AUTOSTART}" = "yes" ] && [ ${EUID} -ne 0 ]; then error "You need to be root to use AUTOINSTALL/AUTOSTART option." + exit 1 fi