mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Add main
function and fire script from main
call. Prevents script from running before it is entirely downloaded.
This commit is contained in:
parent
33745be745
commit
44170207ac
1 changed files with 4 additions and 1 deletions
|
@ -903,7 +903,7 @@ updateDialogs(){
|
|||
|
||||
}
|
||||
|
||||
######## SCRIPT ############
|
||||
main() {
|
||||
if [[ -f ${setupVars} ]];then
|
||||
. ${setupVars}
|
||||
|
||||
|
@ -979,3 +979,6 @@ fi
|
|||
echo ":::"
|
||||
echo "::: The install log is located at: /etc/pihole/install.log"
|
||||
echo "::: View the web interface at http://pi.hole/admin or http://${IPv4addr%/*}/admin"
|
||||
}
|
||||
|
||||
main "$@"
|
Loading…
Reference in a new issue