From a35cd2eca4dce9eb9698785cecc32c3faf59babf Mon Sep 17 00:00:00 2001 From: cn3lfs Date: Tue, 30 Jun 2020 15:14:19 +0800 Subject: [PATCH] change mkdir to mkdir -p for directory not exist change mkdir to mkdir -p for directory /etc/openvpn/easy-rsa not exist --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 9ddcbb8..0ae3821 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -694,7 +694,7 @@ function installOpenVPN() { if [[ ! -d /etc/openvpn/easy-rsa/ ]]; then local version="3.0.7" wget -O ~/easy-rsa.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v${version}/EasyRSA-${version}.tgz - mkdir /etc/openvpn/easy-rsa + mkdir -p /etc/openvpn/easy-rsa tar xzf ~/easy-rsa.tgz --strip-components=1 --directory /etc/openvpn/easy-rsa rm -f ~/easy-rsa.tgz