mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
install sudo
sudo is needed for the sudoers file to work, which is how the Web interface executes the pihole commands.
This commit is contained in:
parent
1e0666d1ef
commit
1194e48bd8
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ else
|
|||
if [[ $(dpkg-query -s sudo) ]];then
|
||||
export SUDO="sudo"
|
||||
else
|
||||
echo "::: Please install sudo or run this as root."
|
||||
echo "::: sudo will be installed. It is needed for the Web interface to run pihole commands."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
@ -548,7 +548,7 @@ checkForDependencies() {
|
|||
echo ":::"
|
||||
echo "::: Checking dependencies:"
|
||||
|
||||
dependencies=( dnsutils bc dnsmasq lighttpd php5-common php5-cgi php5 git curl unzip wget )
|
||||
dependencies=( dnsutils bc dnsmasq lighttpd php5-common php5-cgi php5 git curl unzip wget sudo)
|
||||
for i in "${dependencies[@]}"; do
|
||||
echo -n "::: Checking for $i..."
|
||||
if [ "$(dpkg-query -W -f='${Status}' "$i" 2>/dev/null | grep -c "ok installed")" -eq 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue