mirror of
https://github.com/namibia/openvpn-install.git
synced 2025-01-29 23:38:25 +00:00
Update distro compatibility list and remove Debian 8 support (#654)
This commit is contained in:
parent
54b884e7b1
commit
5c2a86f27e
@ -117,13 +117,12 @@ The script supports these OS and architectures:
|
|||||||
| --------------- | ---- | ----- | ----- | ----- |
|
| --------------- | ---- | ----- | ----- | ----- |
|
||||||
| Amazon Linux 2 | ❔ | ✅ | ❔ | ❔ |
|
| Amazon Linux 2 | ❔ | ✅ | ❔ | ❔ |
|
||||||
| Arch Linux | ❔ | ✅ | ❔ | ✅ |
|
| Arch Linux | ❔ | ✅ | ❔ | ✅ |
|
||||||
| CentOS 7 | ❔ | ✅ | ❌ | ✅ |
|
| CentOS 7 | ✅ | ✅ | ✅ | ✅ |
|
||||||
| CentOS 8 | ❌ | ✅ | ❔ | ❔ |
|
| CentOS 8 | ❌ | ✅ | ❌ | ✅ |
|
||||||
| Debian 8 | ✅ | ✅ | ❌ | ❌ |
|
| Debian >= 9 | ✅ | ✅ | ✅ | ✅ |
|
||||||
| Debian >= 9 | ❌ | ✅ | ✅ | ✅ |
|
|
||||||
| Fedora >= 27 | ❔ | ✅ | ❔ | ❔ |
|
| Fedora >= 27 | ❔ | ✅ | ❔ | ❔ |
|
||||||
| Ubuntu 16.04 | ✅ | ✅ | ❌ | ❌ |
|
| Ubuntu 16.04 | ✅ | ✅ | ❌ | ❌ |
|
||||||
| Ubuntu >= 18.04 | ❌ | ✅ | ✅ | ✅ |
|
| Ubuntu >= 18.04 | ✅ | ✅ | ✅ | ✅ |
|
||||||
|
|
||||||
To be noted:
|
To be noted:
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ function checkOS() {
|
|||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
|
|
||||||
if [[ $ID == "debian" || $ID == "raspbian" ]]; then
|
if [[ $ID == "debian" || $ID == "raspbian" ]]; then
|
||||||
if [[ $VERSION_ID -lt 8 ]]; then
|
if [[ $VERSION_ID -lt 9 ]]; then
|
||||||
echo "⚠️ Your version of Debian is not supported."
|
echo "⚠️ Your version of Debian is not supported."
|
||||||
echo ""
|
echo ""
|
||||||
echo "However, if you're using Debian >= 8 or unstable/testing then you can continue, at your own risk."
|
echo "However, if you're using Debian >= 9 or unstable/testing then you can continue, at your own risk."
|
||||||
echo ""
|
echo ""
|
||||||
until [[ $CONTINUE =~ (y|n) ]]; do
|
until [[ $CONTINUE =~ (y|n) ]]; do
|
||||||
read -rp "Continue? [y/n]: " -e CONTINUE
|
read -rp "Continue? [y/n]: " -e CONTINUE
|
||||||
@ -653,11 +653,6 @@ function installOpenVPN() {
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install ca-certificates gnupg
|
apt-get -y install ca-certificates gnupg
|
||||||
# We add the OpenVPN repo to get the latest version.
|
# We add the OpenVPN repo to get the latest version.
|
||||||
if [[ $VERSION_ID == "8" ]]; then
|
|
||||||
echo "deb http://build.openvpn.net/debian/openvpn/stable jessie main" >/etc/apt/sources.list.d/openvpn.list
|
|
||||||
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
|
||||||
apt-get update
|
|
||||||
fi
|
|
||||||
if [[ $VERSION_ID == "16.04" ]]; then
|
if [[ $VERSION_ID == "16.04" ]]; then
|
||||||
echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" >/etc/apt/sources.list.d/openvpn.list
|
echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" >/etc/apt/sources.list.d/openvpn.list
|
||||||
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user