Fixed FINAL forgotten $0 in sudo!

This commit is contained in:
ryt51V 2016-03-02 21:23:42 +00:00
parent 8a0c173610
commit 923b4d6d80

View file

@ -24,8 +24,8 @@ else
# Check if it is actually installed
# If it isn't, exit because the install cannot complete
if [[ $(dpkg-query -s sudo) ]];then
echo "::: Running sudo -u pihole $@"
sudo -u pihole "$@"
echo "::: Running sudo -u pihole $0 $@"
sudo -u pihole "$0" "$@"
exit $?
else
echo "::: Please install sudo."