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:
@@ -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
|
||||
|
Reference in New Issue
Block a user