1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-06-05 04:50:49 +00:00

Add support for Debian 11 Bullseye

This commit is contained in:
miko 2021-08-21 11:27:09 +08:00
parent 25c486f9e8
commit 90264c1590

View File

@ -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