Merge pull request #1752 from pi-hole/new/bashupdatechecker

Add bash / cron based update checker for Pi-hole
This commit is contained in:
Jacob Salmela
2017-11-08 20:38:40 -06:00
committed by GitHub
4 changed files with 71 additions and 0 deletions

6
pihole
View File

@@ -582,6 +582,11 @@ tricorderFunc() {
fi
}
updateCheckFunc() {
"${PI_HOLE_SCRIPT_DIR}"/updatecheck.sh "$@"
exit 0
}
helpFunc() {
echo "Usage: pihole [options]
Example: 'pihole -w -h'
@@ -653,5 +658,6 @@ case "${1}" in
"-t" | "tail" ) tailFunc;;
"checkout" ) piholeCheckoutFunc "$@";;
"tricorder" ) tricorderFunc;;
"updatechecker" ) updateCheckFunc;;
* ) helpFunc;;
esac