mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
add -r to reconfigure pihole (basically runs basic-install.sh from /etc/.pihole)
This commit is contained in:
parent
23f7363c70
commit
5ea08a2120
1 changed files with 7 additions and 1 deletions
8
pihole
8
pihole
|
@ -116,6 +116,11 @@ function updatePiholeFunc {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reconfigurePiholeFunc {
|
||||||
|
${SUDO} /etc/.pihole/automated\ install/basic-install.sh
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
function updateGravityFunc {
|
function updateGravityFunc {
|
||||||
${SUDO} /opt/pihole/gravity.sh "$@"
|
${SUDO} /opt/pihole/gravity.sh "$@"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -190,6 +195,7 @@ case "$1" in
|
||||||
"-d" | "debug" ) debugFunc;;
|
"-d" | "debug" ) debugFunc;;
|
||||||
"-f" | "flush" ) flushFunc;;
|
"-f" | "flush" ) flushFunc;;
|
||||||
"-up" | "updatePihole" ) updatePiholeFunc;;
|
"-up" | "updatePihole" ) updatePiholeFunc;;
|
||||||
|
"-r" | "reconfigure" ) reconfigurePiholeFunc;;
|
||||||
"-g" | "updateGravity" ) updateGravityFunc "$@";;
|
"-g" | "updateGravity" ) updateGravityFunc "$@";;
|
||||||
"-s" | "setupLCD" ) setupLCDFunction;;
|
"-s" | "setupLCD" ) setupLCDFunction;;
|
||||||
"-c" | "chronometer" ) chronometerFunc "$@";;
|
"-c" | "chronometer" ) chronometerFunc "$@";;
|
||||||
|
@ -198,4 +204,4 @@ case "$1" in
|
||||||
"-q" | "query" ) queryFunc "$@";;
|
"-q" | "query" ) queryFunc "$@";;
|
||||||
"uninstall" ) uninstallFunc;;
|
"uninstall" ) uninstallFunc;;
|
||||||
* ) helpFunc;;
|
* ) helpFunc;;
|
||||||
esac
|
esac
|
Loading…
Reference in a new issue