Compare commits
1 Commits
master
...
tweak/disa
Author | SHA1 | Date | |
---|---|---|---|
|
4922ed2aeb |
@@ -74,8 +74,8 @@ regexFile="/etc/pihole/regex.list"
|
|||||||
# this script can run
|
# this script can run
|
||||||
IPV4_ADDRESS=""
|
IPV4_ADDRESS=""
|
||||||
IPV6_ADDRESS=""
|
IPV6_ADDRESS=""
|
||||||
# By default, query logging is enabled and the dashboard is set to be installed
|
# By default, query logging is disabled and the dashboard is set to be installed
|
||||||
QUERY_LOGGING=true
|
QUERY_LOGGING=false
|
||||||
INSTALL_WEB_INTERFACE=true
|
INSTALL_WEB_INTERFACE=true
|
||||||
PRIVACY_LEVEL=0
|
PRIVACY_LEVEL=0
|
||||||
|
|
||||||
@@ -1076,21 +1076,21 @@ setLogging() {
|
|||||||
local LogChoices
|
local LogChoices
|
||||||
|
|
||||||
# Ask if the user wants to log queries
|
# Ask if the user wants to log queries
|
||||||
LogToggleCommand=(whiptail --separate-output --radiolist "Do you want to log queries?" "${r}" "${c}" 6)
|
LogToggleCommand=(whiptail --separate-output --radiolist "Do you want to log queries to pihole.log?" "${r}" "${c}" 6)
|
||||||
# The default selection is on
|
# The default selection is off to reduce stressing the SD card
|
||||||
LogChooseOptions=("On (Recommended)" "" on
|
LogChooseOptions=("Off (Recommended)" "" on
|
||||||
Off "" off)
|
"On" "" off)
|
||||||
# Get the user's choice
|
# Get the user's choice
|
||||||
LogChoices=$("${LogToggleCommand[@]}" "${LogChooseOptions[@]}" 2>&1 >/dev/tty) || (printf " %bCancel was selected, exiting installer%b\\n" "${COL_LIGHT_RED}" "${COL_NC}" && exit 1)
|
LogChoices=$("${LogToggleCommand[@]}" "${LogChooseOptions[@]}" 2>&1 >/dev/tty) || (printf " %bCancel was selected, exiting installer%b\\n" "${COL_LIGHT_RED}" "${COL_NC}" && exit 1)
|
||||||
case ${LogChoices} in
|
case ${LogChoices} in
|
||||||
# If it's on
|
# If it's on
|
||||||
"On (Recommended)")
|
"On")
|
||||||
printf " %b Logging On.\\n" "${INFO}"
|
printf " %b Logging On.\\n" "${INFO}"
|
||||||
# Set the GLOBAL variable to true so we know what they selected
|
# Set the GLOBAL variable to true so we know what they selected
|
||||||
QUERY_LOGGING=true
|
QUERY_LOGGING=true
|
||||||
;;
|
;;
|
||||||
# Otherwise, it's off,
|
# Otherwise, it's off,
|
||||||
Off)
|
"Off (Recommended)")
|
||||||
printf " %b Logging Off.\\n" "${INFO}"
|
printf " %b Logging Off.\\n" "${INFO}"
|
||||||
# So set it to false
|
# So set it to false
|
||||||
QUERY_LOGGING=false
|
QUERY_LOGGING=false
|
||||||
|
Reference in New Issue
Block a user