From 66787bc12ca4006b946c595b65c27aad47823d18 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Fri, 9 Dec 2016 01:14:17 -0800 Subject: [PATCH] Revert "Manual run as root user if installed as cron" This reverts commit 4a088cb3c60bbca32f0e377b0e63da27ff093813. --- plexupdate.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 44681fb..47e7c73 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -43,14 +43,6 @@ if [ -z "${BASH_VERSINFO}" ]; then exit 255 fi -if [ $(stat -Lc %u "$0") -eq 0 -a $EUID -ne 0 ]; then - # Script is owned by root but is being run by regular user - echo "This script is owned by root and must be run as root to work properly" - echo "Re-running as root user" - sudo "$0" ${ALLARGS[@]} - exit $? -fi - ############################################################################## # Don't change anything below this point, use a plexupdate.conf file # to override this section.