mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 23:23:42 +00:00
Improved dialogue messages.
This commit is contained in:
parent
4c6e8c9c97
commit
3cf2406045
1 changed files with 3 additions and 2 deletions
|
@ -305,7 +305,8 @@ setStaticIPv4() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function chooseWebServer() {
|
function chooseWebServer() {
|
||||||
chooseWebServerCmd=(whiptail --separate-output --radiolist "pi-hole can automatically configure the lighttpd web server for you. Alternatively you can manually configure a web server yourself." $r $c 2)
|
# Allow the user to choose the web server they wish to use.
|
||||||
|
chooseWebServerCmd=(whiptail --separate-output --radiolist "pi-hole will automatically configure the lighttpd web server for you. Alternatively, if you prefer, pi-hole can use a web server that you have previously manually configured yourself.\n\n(If you are unsure, choose lighttpd.)" $r $c 2)
|
||||||
chooseWebServerOptions=(lighttpd "" on
|
chooseWebServerOptions=(lighttpd "" on
|
||||||
Manual "" off)
|
Manual "" off)
|
||||||
webServer=$("${chooseWebServerCmd[@]}" "${chooseWebServerOptions[@]}" 2>&1 >/dev/tty)
|
webServer=$("${chooseWebServerCmd[@]}" "${chooseWebServerOptions[@]}" 2>&1 >/dev/tty)
|
||||||
|
@ -316,7 +317,7 @@ function chooseWebServer() {
|
||||||
;;
|
;;
|
||||||
Manual)
|
Manual)
|
||||||
echo "::: Using manual web server configuration."
|
echo "::: Using manual web server configuration."
|
||||||
webRoot=$(whiptail --backtitle "Web Root" --title "Web Root" --inputbox "Enter your website root path." $r $c "/var/www/html" 3>&1 1>&2 2>&3)
|
webRoot=$(whiptail --backtitle "Web Root" --title "Web Root" --inputbox "Enter the root path of the website you have manually configured for the pi-hole." $r $c "/var/www/html" 3>&1 1>&2 2>&3)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
webInterfaceDir="${webRoot}/admin"
|
webInterfaceDir="${webRoot}/admin"
|
||||||
|
|
Loading…
Reference in a new issue