Updated askAboutCustomizing() function

- Tweaked dialog text
  - Don't show dialog if runnning unattended
This commit is contained in:
Orazio 2020-06-08 09:38:53 +02:00
parent e74ad23e8e
commit 8e1f53f34e

View file

@ -1124,10 +1124,12 @@ askWhichVPN(){
}
askAboutCustomizing(){
if (whiptail --backtitle "Setup PiVPN" --title "Installation mode" --yesno --defaultno "PiVPN uses some settings that we believe are good defaults for most users.\n\n- UDP or TCP protocol: UDP\n- Custom search domain for the DNS field: None\n- Modern features or best compatibility: Modern features (256 bit certificate + additional TLS encryption)\n\nHowever, we still want to keep flexibility, so if you need to customize them, choose Yes." ${r} ${c}); then
CUSTOMIZE=1
else
CUSTOMIZE=0
if [ "${runUnattended}" = 'false' ]; then
if (whiptail --backtitle "Setup PiVPN" --title "Installation mode" --yesno --defaultno "PiVPN uses the following settings that we believe are good defaults for most users. However, we still want to keep flexibility, so if you need to customize them, choose Yes.\n\n* UDP or TCP protocol: UDP\n* Custom search domain for the DNS field: None\n* Modern features or best compatibility: Modern features (256 bit certificate + additional TLS encryption)" ${r} ${c}); then
CUSTOMIZE=1
else
CUSTOMIZE=0
fi
fi
}