Fix sed line deletion
This commit is contained in:
parent
e123635e7c
commit
7688483766
1 changed files with 1 additions and 1 deletions
|
|
@ -1120,7 +1120,7 @@ function revokeClient () {
|
|||
chmod 644 /etc/openvpn/crl.pem
|
||||
find /home/ -maxdepth 2 -name "$CLIENT.ovpn" -delete
|
||||
rm -f "/root/$CLIENT.ovpn"
|
||||
sed -i "s|^$CLIENT,.*||" /etc/openvpn/ipp.txt
|
||||
sed -i "/^$CLIENT,.*/d" /etc/openvpn/ipp.txt
|
||||
|
||||
echo ""
|
||||
echo "Certificate for client $CLIENT revoked."
|
||||
|
|
|
|||
Loading…
Reference in a new issue