mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-03-14 06:33:17 +01:00
修复删除用户后重新添加同名用户提示用户已存在的问题
This commit is contained in:
parent
c2059d684d
commit
34e2249b22
@ -1183,6 +1183,7 @@ function revokeClient() {
|
||||
rm -f "/root/$CLIENT.ovpn"
|
||||
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
|
||||
cp /etc/openvpn/easy-rsa/pki/index.txt{,.bk}
|
||||
sed -i "/CN=$CLIENT/d" /etc/openvpn/easy-rsa/pki/index.txt
|
||||
|
||||
echo ""
|
||||
echo "Certificate for client $CLIENT revoked."
|
||||
|
Loading…
x
Reference in New Issue
Block a user