mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Revert "Manual run as root user if installed as cron"
This reverts commit 4a088cb3c6
.
This commit is contained in:
parent
4a088cb3c6
commit
66787bc12c
1 changed files with 0 additions and 8 deletions
|
@ -43,14 +43,6 @@ if [ -z "${BASH_VERSINFO}" ]; then
|
||||||
exit 255
|
exit 255
|
||||||
fi
|
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
|
# Don't change anything below this point, use a plexupdate.conf file
|
||||||
# to override this section.
|
# to override this section.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue