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:
parent
00131b052f
commit
ced9816398
@ -377,7 +377,7 @@ function _install_wireguard() {
|
|||||||
echo 'deb http://ftp.debian.org/debian buster-backports main' | sudo tee /etc/apt/sources.list.d/buster-backports.list || _install_status 1 "Unable to add Debian backports repo"
|
echo 'deb http://ftp.debian.org/debian buster-backports main' | sudo tee /etc/apt/sources.list.d/buster-backports.list || _install_status 1 "Unable to add Debian backports repo"
|
||||||
fi
|
fi
|
||||||
echo "Installing wireguard from apt"
|
echo "Installing wireguard from apt"
|
||||||
sudo apt-get update && sudo apt-get install $apt_option wireguard || _install_status 1 "Unable to install wireguard"
|
sudo apt-get install -y wireguard || _install_status 1 "Unable to install wireguard"
|
||||||
echo "Enabling wg-quick@wg0"
|
echo "Enabling wg-quick@wg0"
|
||||||
sudo systemctl enable wg-quick@wg0 || _install_status 1 "Failed to enable wg-quick service"
|
sudo systemctl enable wg-quick@wg0 || _install_status 1 "Failed to enable wg-quick service"
|
||||||
echo "Enabling WireGuard management option"
|
echo "Enabling WireGuard management option"
|
||||||
|
Loading…
Reference in New Issue
Block a user