mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-12 07:22:41 +01:00
Improve Debian detection
e.g. for Raspbian
This commit is contained in:
@@ -17,10 +17,10 @@ function tunAvailable () {
|
|||||||
|
|
||||||
function checkOS () {
|
function checkOS () {
|
||||||
if [[ -e /etc/debian_version ]]; then
|
if [[ -e /etc/debian_version ]]; then
|
||||||
|
OS="debian"
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
|
|
||||||
if [[ "$ID" == "debian" ]]; then
|
if [[ "$ID" == "debian" ]]; then
|
||||||
OS="debian"
|
|
||||||
if [[ ! $VERSION_ID =~ (8|9) ]]; then
|
if [[ ! $VERSION_ID =~ (8|9) ]]; then
|
||||||
echo "⚠️ Your version of Debian is not supported."
|
echo "⚠️ Your version of Debian is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user