From 44e1f4885683a7bb59fbdfdb9e65eda8020a6676 Mon Sep 17 00:00:00 2001 From: Douglas Orend <43975081+douglasorend@users.noreply.github.com> Date: Tue, 20 Aug 2019 09:02:31 -0500 Subject: [PATCH] Update makeOVPN.sh Fixed ownership line to use only username, not install path. --- scripts/makeOVPN.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makeOVPN.sh b/scripts/makeOVPN.sh index 99be815..d4ce274 100755 --- a/scripts/makeOVPN.sh +++ b/scripts/makeOVPN.sh @@ -271,7 +271,7 @@ echo "tls-auth Private Key found: $TA" # Copy the .ovpn profile to the home directory for convenient remote access INSTALL_HOME=$(cat /etc/passwd | grep "$INSTALL_USER" | cut -d: -f6) cp "/etc/openvpn/easy-rsa/pki/$NAME$FILEEXT" "$INSTALL_HOME/ovpns/$NAME$FILEEXT" -chown "$INSTALL_HOME" "$INSTALL_HOME/ovpns/$NAME$FILEEXT" +chown "$INSTALL_USER" "$INSTALL_HOME/ovpns/$NAME$FILEEXT" chmod o-r "/etc/openvpn/easy-rsa/pki/$NAME$FILEEXT" chmod o-r "$INSTALL_HOME/ovpns/$NAME$FILEEXT" printf "\n\n"