mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Swap variable names.
This commit is contained in:
parent
796119a377
commit
652b607ce4
1 changed files with 4 additions and 3 deletions
|
@ -500,11 +500,11 @@ setDNS() {
|
||||||
|
|
||||||
setLogging() {
|
setLogging() {
|
||||||
LogToggleCommand=(whiptail --separate-output --radiolist "Do you want to log queries?\n (Disabling will render graphs on the Admin page useless):" ${r} ${c} 6)
|
LogToggleCommand=(whiptail --separate-output --radiolist "Do you want to log queries?\n (Disabling will render graphs on the Admin page useless):" ${r} ${c} 6)
|
||||||
DNSChooseOptions=("On (Reccomended)" "" on
|
LogChooseOptions=("On (Reccomended)" "" on
|
||||||
Off "" off)
|
Off "" off)
|
||||||
DNSchoices=$("${DNSChooseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty)
|
LogChoices=$("${LogToggleCommand[@]}" "${LogChooseOptions[@]}" 2>&1 >/dev/tty)
|
||||||
if [[ $? = 0 ]];then
|
if [[ $? = 0 ]];then
|
||||||
case ${DNSchoices} in
|
case ${LogChoices} in
|
||||||
"On (Recommended)")
|
"On (Recommended)")
|
||||||
echo "::: Logging On."
|
echo "::: Logging On."
|
||||||
queryLogging=true
|
queryLogging=true
|
||||||
|
@ -515,6 +515,7 @@ setLogging() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
# Well never see this, `set -e` kicked in already and dropped us.
|
||||||
echo "::: Cancel selected. Exiting..."
|
echo "::: Cancel selected. Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue