Make webpage.sh fully library style

This commit is contained in:
DL6ER
2016-12-28 16:25:14 +00:00
parent 9af26cbaac
commit 1e627c7e8f
2 changed files with 31 additions and 27 deletions

3
pihole
View File

@@ -23,7 +23,8 @@ if [[ ! $EUID -eq 0 ]];then
fi
webpageFunc() {
/opt/pihole/webpage.sh "$@"
source /opt/pihole/webpage.sh
main "$@"
exit 0
}