mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-22 00:39:03 +01:00
Remove temporary files when they are no longer needed
This commit is contained in:
parent
31040f475a
commit
0eda63842c
@ -5,8 +5,6 @@
|
|||||||
# it will probably work if you simply want to setup a VPN on your Debian/Ubuntu
|
# it will probably work if you simply want to setup a VPN on your Debian/Ubuntu
|
||||||
# VPS. It has been designed to be as unobtrusive and universal as possible.
|
# VPS. It has been designed to be as unobtrusive and universal as possible.
|
||||||
|
|
||||||
# Last update, May 14, 2013 by Nyr
|
|
||||||
|
|
||||||
|
|
||||||
if [ $USER != 'root' ]; then
|
if [ $USER != 'root' ]; then
|
||||||
echo "Sorry, you need to run this as root"
|
echo "Sorry, you need to run this as root"
|
||||||
@ -134,6 +132,7 @@ else
|
|||||||
tar xzf ~/easy-rsa.tar.gz -C ~/
|
tar xzf ~/easy-rsa.tar.gz -C ~/
|
||||||
mkdir -p /etc/openvpn/easy-rsa/2.0/
|
mkdir -p /etc/openvpn/easy-rsa/2.0/
|
||||||
cp ~/easy-rsa-master/easy-rsa/2.0/* /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
|
||||||
fi
|
fi
|
||||||
cd /etc/openvpn/easy-rsa/2.0/
|
cd /etc/openvpn/easy-rsa/2.0/
|
||||||
# Let's fix one thing first...
|
# Let's fix one thing first...
|
||||||
|
Loading…
Reference in New Issue
Block a user