mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-21 16:29:04 +01:00
Improve Debian detection
e.g. for Raspbian
This commit is contained in:
parent
d2bd051d97
commit
043843850e
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user