Skip to content

Commit

Permalink
Add support for Debian 11 Bullseye (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
afxres authored Aug 22, 2021
1 parent 25c486f commit 574cc06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions wireguard-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 574cc06

Please sign in to comment.