mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-27 23:36:01 +03:00
Add support for Debian 11 Bullseye (#262)
This commit is contained in:
parent
25c486f9e8
commit
574cc06b31
@ -17,7 +17,7 @@ WireGuard does not fit your environment? Check out [openvpn-install](https://git
|
|||||||
Supported distributions:
|
Supported distributions:
|
||||||
|
|
||||||
- Ubuntu >= 16.04
|
- Ubuntu >= 16.04
|
||||||
- Debian 10
|
- Debian >= 10
|
||||||
- Fedora
|
- Fedora
|
||||||
- CentOS
|
- CentOS
|
||||||
- Arch Linux
|
- Arch Linux
|
||||||
|
@ -36,8 +36,8 @@ function checkOS() {
|
|||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
OS="${ID}" # debian or ubuntu
|
OS="${ID}" # debian or ubuntu
|
||||||
if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
|
if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
|
||||||
if [[ ${VERSION_ID} -ne 10 ]]; then
|
if [[ ${VERSION_ID} -lt 10 ]]; then
|
||||||
echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
|
echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster or later"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -123,7 +123,7 @@ function installWireGuard() {
|
|||||||
installQuestions
|
installQuestions
|
||||||
|
|
||||||
# Install WireGuard tools and module
|
# Install WireGuard tools and module
|
||||||
if [[ ${OS} == 'ubuntu' ]]; then
|
if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wireguard iptables resolvconf qrencode
|
apt-get install -y wireguard iptables resolvconf qrencode
|
||||||
elif [[ ${OS} == 'debian' ]]; then
|
elif [[ ${OS} == 'debian' ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user