mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
remove dpkg-query dependency from sudo check
This commit is contained in:
parent
13a479a9f6
commit
42afaa9f66
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ else
|
|||
echo "::: sudo will be used for the install."
|
||||
# Check if it is actually installed
|
||||
# If it isn't, exit because the install cannot complete
|
||||
if [[ $(dpkg-query -s sudo) ]];then
|
||||
if [ -x "$(command -v sudo)" ];then
|
||||
export SUDO="sudo"
|
||||
else
|
||||
echo "::: sudo is needed for the Web interface to run pihole commands. Please run this script as root and it will be automatically installed."
|
||||
|
|
Loading…
Reference in a new issue