mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-21 05:43:20 -07:00
made root check case-insensitive
running the script via sudo, kept returning the 'run as root' error. Reason: id returned 'UID=0(root) GID=0(root) groepen=0(root)', while the lower case version was expected
This commit is contained in:
parent
653588d43c
commit
5ac1aec075
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ if [ "${EMAIL}" == "" -o "${PASS}" == "" ] && [ "${PUBLIC}" == "no" ]; then
|
|||
fi
|
||||
|
||||
if [ "${AUTOINSTALL}" == "yes" -o "${AUTOSTART}" == "yes" ]; then
|
||||
id | grep 'uid=0(' 2>&1 >/dev/null
|
||||
id | grep -i 'uid=0(' 2>&1 >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: You need to be root to use autoinstall/autostart option."
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue