aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikodev <stdarg@outlook.com>2021-08-22 17:34:08 +0800
committerGitHub <noreply@github.com>2021-08-22 11:34:08 +0200
commit574cc06b31c73cb3b57ffb51b0b025052be69886 (patch)
tree8e30132981731b1c5a31581ee906e25ab7b349eb
parent25c486f9e89244d7c9b1d661bb3689a4fdf793e4 (diff)
Add support for Debian 11 Bullseye (#262)
-rw-r--r--README.md2
-rw-r--r--wireguard-install.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2f0b6f6..13f310d 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ WireGuard does not fit your environment? Check out [openvpn-install](https://git
Supported distributions:
- Ubuntu >= 16.04
-- Debian 10
+- Debian >= 10
- Fedora
- CentOS
- Arch Linux
diff --git a/wireguard-install.sh b/wireguard-install.sh
index c8948b4..9a893c7 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -36,8 +36,8 @@ function checkOS() {
source /etc/os-release
OS="${ID}" # debian or ubuntu
if [[ ${ID} == "debian" || ${ID} == "raspbian" ]]; then
- if [[ ${VERSION_ID} -ne 10 ]]; then
- echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster"
+ if [[ ${VERSION_ID} -lt 10 ]]; then
+ echo "Your version of Debian (${VERSION_ID}) is not supported. Please use Debian 10 Buster or later"
exit 1
fi
fi
@@ -123,7 +123,7 @@ function installWireGuard() {
installQuestions
# Install WireGuard tools and module
- if [[ ${OS} == 'ubuntu' ]]; then
+ if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
apt-get update
apt-get install -y wireguard iptables resolvconf qrencode
elif [[ ${OS} == 'debian' ]]; then