mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-10-31 14:07:36 +01:00 
			
		
		
		
	Fix service handling on Ubuntu 16.04
This commit is contained in:
		| @@ -812,7 +812,7 @@ verb 3" >> /etc/openvpn/server.conf | |||||||
| 		systemctl daemon-reload | 		systemctl daemon-reload | ||||||
| 		systemctl restart openvpn-server@server | 		systemctl restart openvpn-server@server | ||||||
| 		systemctl enable openvpn-server@server | 		systemctl enable openvpn-server@server | ||||||
| 	elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then | 	elif [[ "$OS" == "ubuntu" ]] && [[ "$VERSION_ID" == "16.04" ]]; then | ||||||
| 		# On Ubuntu 16.04, we use the package from the OpenVPN repo | 		# On Ubuntu 16.04, we use the package from the OpenVPN repo | ||||||
| 		# This package uses a sysvinit service | 		# This package uses a sysvinit service | ||||||
| 		systemctl enable openvpn | 		systemctl enable openvpn | ||||||
| @@ -1095,7 +1095,7 @@ function removeOpenVPN () { | |||||||
| 			systemctl stop openvpn-server@server | 			systemctl stop openvpn-server@server | ||||||
| 			# Remove customised service | 			# Remove customised service | ||||||
| 			rm /etc/systemd/system/openvpn-server@.service | 			rm /etc/systemd/system/openvpn-server@.service | ||||||
| 		elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then | 		elif [[ "$OS" == "ubuntu" ]] && [[ "$VERSION_ID" == "16.04" ]]; then | ||||||
| 			systemctl disable openvpn | 			systemctl disable openvpn | ||||||
| 			systemctl stop openvpn | 			systemctl stop openvpn | ||||||
| 		else | 		else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 angristan
					angristan