add -r to reconfigure pihole (basically runs basic-install.sh from /etc/.pihole)
This commit is contained in:
parent
23f7363c70
commit
5ea08a2120
8
pihole
8
pihole
|
@ -116,6 +116,11 @@ function updatePiholeFunc {
|
|||
exit 1
|
||||
}
|
||||
|
||||
function reconfigurePiholeFunc {
|
||||
${SUDO} /etc/.pihole/automated\ install/basic-install.sh
|
||||
exit 1;
|
||||
}
|
||||
|
||||
function updateGravityFunc {
|
||||
${SUDO} /opt/pihole/gravity.sh "$@"
|
||||
exit 1
|
||||
|
@ -190,6 +195,7 @@ case "$1" in
|
|||
"-d" | "debug" ) debugFunc;;
|
||||
"-f" | "flush" ) flushFunc;;
|
||||
"-up" | "updatePihole" ) updatePiholeFunc;;
|
||||
"-r" | "reconfigure" ) reconfigurePiholeFunc;;
|
||||
"-g" | "updateGravity" ) updateGravityFunc "$@";;
|
||||
"-s" | "setupLCD" ) setupLCDFunction;;
|
||||
"-c" | "chronometer" ) chronometerFunc "$@";;
|
||||
|
@ -198,4 +204,4 @@ case "$1" in
|
|||
"-q" | "query" ) queryFunc "$@";;
|
||||
"uninstall" ) uninstallFunc;;
|
||||
* ) helpFunc;;
|
||||
esac
|
||||
esac
|
Loading…
Reference in New Issue