Allow passing of --check-only to update script.

Don't run installer for updating web files, it's handled by getGitFiles.
I think this works...

Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
Adam Warner 2018-04-15 18:25:35 +01:00
parent 310d33b8ee
commit bca23dd896
No known key found for this signature in database
GPG key ID: F5410858022DA5EB
2 changed files with 15 additions and 3 deletions

4
pihole
View file

@ -71,7 +71,7 @@ flushFunc() {
}
updatePiholeFunc() {
"${PI_HOLE_SCRIPT_DIR}"/update.sh
"${PI_HOLE_SCRIPT_DIR}"/update.sh "$@"
exit 0
}
@ -644,7 +644,7 @@ case "${1}" in
"-wild" | "wildcard" ) wildcardFunc "$@";;
"-d" | "debug" ) debugFunc "$@";;
"-f" | "flush" ) flushFunc "$@";;
"-up" | "updatePihole" ) updatePiholeFunc;;
"-up" | "updatePihole" ) updatePiholeFunc "$@";;
"-r" | "reconfigure" ) reconfigurePiholeFunc;;
"-g" | "updateGravity" ) updateGravityFunc "$@";;
"-c" | "chronometer" ) chronometerFunc "$@";;