mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Updated askAboutCustomizing() function
- Tweaked dialog text - Don't show dialog if runnning unattended
This commit is contained in:
parent
e74ad23e8e
commit
8e1f53f34e
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue