mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
tell user to run as root
since you can't install sudo as a non-root user, the script needs to be run as root in order to install it.
This commit is contained in:
parent
1194e48bd8
commit
13a479a9f6
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ else
|
||||||
if [[ $(dpkg-query -s sudo) ]];then
|
if [[ $(dpkg-query -s sudo) ]];then
|
||||||
export SUDO="sudo"
|
export SUDO="sudo"
|
||||||
else
|
else
|
||||||
echo "::: sudo will be installed. It is needed for the Web interface to run pihole commands."
|
echo "::: sudo is needed for the Web interface to run pihole commands. Please run this script as root and it will be automatically installed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue