1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Update common.sh

This commit is contained in:
Bill Zimmerman 2022-01-01 23:47:20 +01:00 committed by GitHub
parent 60d151b976
commit 1c3c6599fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,21 +352,19 @@ function _prompt_install_openvpn() {
# Prompt to install WireGuard # Prompt to install WireGuard
function _prompt_install_wireguard() { function _prompt_install_wireguard() {
if [ "$insiders" == 1 ]; then _install_log "Configure WireGuard support"
_install_log "Configure WireGuard support" echo -n "Install WireGuard and enable VPN tunnel configuration? [Y/n]: "
echo -n "Install WireGuard and enable VPN tunnel configuration? [Y/n]: " if [ "$assume_yes" == 0 ]; then
if [ "$assume_yes" == 0 ]; then read answer < /dev/tty
read answer < /dev/tty if [ "$answer" != "${answer#[Nn]}" ]; then
if [ "$answer" != "${answer#[Nn]}" ]; then echo -e
echo -e
else
_install_wireguard
fi
elif [ "$wg_option" == 1 ]; then
_install_wireguard
else else
echo "(Skipped)" _install_wireguard
fi fi
elif [ "$wg_option" == 1 ]; then
_install_wireguard
else
echo "(Skipped)"
fi fi
} }