mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-11-04 16:07:36 +01:00 
			
		
		
		
	Remove support for Debian 8
This commit is contained in:
		@@ -119,7 +119,6 @@ The script supports these OS and architectures:
 | 
				
			|||||||
| 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    | ✅   | ✅    | ❔    | ❔    |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 -
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user