mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
run apt-get install as sudo when resolving dependencies
This commit is contained in:
parent
2d4ebf5eb5
commit
649a565801
@ -324,7 +324,7 @@ checkForDependencies(){
|
||||
echo -n "::: Checking for $i..."
|
||||
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||
echo -n " Not found! Installing...."
|
||||
apt-get -y -qq install $i > /dev/null & spinner $!
|
||||
$SUDO apt-get -y -qq install $i > /dev/null & spinner $!
|
||||
echo " done!"
|
||||
else
|
||||
echo " already installed!"
|
||||
|
Loading…
Reference in New Issue
Block a user