mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-22 11:08:21 +00:00
EUID didn't work when sourcing file in docker run -d
* alternative syntax using common `id` command should be shared amongst supported OSs
This commit is contained in:
parent
edf81a232d
commit
38c9434c62
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ c=$(( columns / 2 ))
|
|||
######## FIRST CHECK ########
|
||||
# Must be root to install
|
||||
echo ":::"
|
||||
if [[ $EUID -eq 0 ]];then
|
||||
if [ `id -u` -eq 0 ];then
|
||||
echo "::: You are root."
|
||||
else
|
||||
echo "::: sudo will be used for the install."
|
||||
|
|
Loading…
Add table
Reference in a new issue