Update basic-install.sh

This commit is contained in:
Dan Schaper 2016-10-17 18:07:02 -07:00 committed by GitHub
parent 49f48e2aaa
commit 23d37deb66

View file

@ -58,7 +58,7 @@ else
echo "::: Detecting the presence of the sudo utility for continuation of this install..."
if [ -x "$(command -v sudo)" ];then
echo "::: Utility sudo located."
exec sudo bash "$0" "$@"
exec sudo /usr/bin/env bash "$0" "$@"
exit $?
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."