mirror of
				https://github.com/angristan/openvpn-install.git
				synced 2025-11-03 23:47:35 +01:00 
			
		
		
		
	Solve can not add the same client after revokeClient
This commit is contained in:
		@@ -1182,6 +1182,7 @@ function revokeClient() {
 | 
				
			|||||||
	find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
 | 
						find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
 | 
				
			||||||
	rm -f "/root/$CLIENT.ovpn"
 | 
						rm -f "/root/$CLIENT.ovpn"
 | 
				
			||||||
	sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
 | 
						sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
 | 
				
			||||||
 | 
						sed -i "/CN=$CLIENT/d" /etc/openvpn/easy-rsa/pki/index.txt
 | 
				
			||||||
	cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
 | 
						cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	echo ""
 | 
						echo ""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user