mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-16 12:29:03 +00:00
Wrap script in main()
- prepare for no more sudo
This commit is contained in:
parent
10ad32de9b
commit
962d162d75
1 changed files with 68 additions and 64 deletions
|
@ -909,6 +909,7 @@ updateDialogs(){
|
|||
}
|
||||
|
||||
######## MAIN MAIN MAIN ########
|
||||
main () {
|
||||
if [[ -f ${setupVars} ]];then
|
||||
. ${setupVars}
|
||||
|
||||
|
@ -984,3 +985,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…
Add table
Reference in a new issue