mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +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
@ -903,7 +903,7 @@ updateDialogs(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
######## SCRIPT ############
|
main() {
|
||||||
if [[ -f ${setupVars} ]];then
|
if [[ -f ${setupVars} ]];then
|
||||||
. ${setupVars}
|
. ${setupVars}
|
||||||
|
|
||||||
@ -979,3 +979,6 @@ fi
|
|||||||
echo ":::"
|
echo ":::"
|
||||||
echo "::: The install log is located at: /etc/pihole/install.log"
|
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"
|
echo "::: View the web interface at http://pi.hole/admin or http://${IPv4addr%/*}/admin"
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
Loading…
Reference in New Issue
Block a user