Add undocumented argument to install script ("pihole") which allows the pihole command to run the update script without prompting the user. Useful for update automation

This commit is contained in:
Promofaux
2016-08-26 23:06:35 +01:00
parent 681144b2a3
commit 344e63c2dc
2 changed files with 8 additions and 132 deletions

View File

@@ -924,7 +924,13 @@ updateDialogs(){
######## SCRIPT ############
if [[ -f ${setupVars} ]];then
. ${setupVars}
updateDialogs
if [ "$1" == "pihole" ]; then
useUpdateVars=true
else
updateDialogs
fi
fi
# Start the installer