From 6c22c657f728f87e7c1e677597b8932b5a91f19e Mon Sep 17 00:00:00 2001 From: Nyr Date: Thu, 22 Aug 2013 17:00:53 +0200 Subject: [PATCH] Update openvpn-install.sh --- openvpn-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index abb134f..d1efac1 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -63,7 +63,7 @@ if [ -e /etc/openvpn/server.conf ]; then sed -i "s|key client.key|key $CLIENT.key|" $CLIENT.conf tar -czf ../ovpn-$CLIENT.tar.gz $CLIENT.conf ca.crt $CLIENT.crt $CLIENT.key cd ~/ - rm -r ovpn-$CLIENT + rm -rf ovpn-$CLIENT echo "" echo "Client $CLIENT added, certs available at ~/ovpn-$CLIENT.tar.gz" exit @@ -89,8 +89,8 @@ if [ -e /etc/openvpn/server.conf ]; then ;; 3) apt-get remove --purge -y openvpn openvpn-blacklist - rm -r /etc/openvpn - rm -r /usr/share/doc/openvpn + rm -rf /etc/openvpn + rm -rf /usr/share/doc/openvpn sed -i '/--dport 53 -j REDIRECT --to-port 1194/d' /etc/rc.local sed -i '/iptables -t nat -A POSTROUTING -s 10.8.0.0/d' /etc/rc.local echo "" @@ -132,7 +132,7 @@ else tar xzf ~/easy-rsa.tar.gz -C ~/ mkdir -p /etc/openvpn/easy-rsa/2.0/ cp ~/easy-rsa-master/easy-rsa/2.0/* /etc/openvpn/easy-rsa/2.0/ - rm -r ~/easy-rsa-master + rm -rf ~/easy-rsa-master fi cd /etc/openvpn/easy-rsa/2.0/ # Let's fix one thing first... @@ -211,7 +211,7 @@ else sed -i "s|key client.key|key $CLIENT.key|" $CLIENT.conf tar -czf ../ovpn-$CLIENT.tar.gz $CLIENT.conf ca.crt $CLIENT.crt $CLIENT.key cd ~/ - rm -r ovpn-$CLIENT + rm -rf ovpn-$CLIENT echo "" echo "Finished!" echo ""