aboutsummaryrefslogtreecommitdiff
path: root/wireguard-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'wireguard-install.sh')
-rw-r--r--wireguard-install.sh6
1 files changed, 3 insertions, 3 deletions
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