From 043843850e926ac0927c87c022534a6f7b7a94ef Mon Sep 17 00:00:00 2001 From: angristan Date: Sat, 29 Sep 2018 20:14:44 +0200 Subject: [PATCH] Improve Debian detection e.g. for Raspbian --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index df5e55e..1fa1c89 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -17,10 +17,10 @@ function tunAvailable () { function checkOS () { if [[ -e /etc/debian_version ]]; then + OS="debian" source /etc/os-release if [[ "$ID" == "debian" ]]; then - OS="debian" if [[ ! $VERSION_ID =~ (8|9) ]]; then echo "⚠️ Your version of Debian is not supported." echo ""