diff --git a/scripts/makeOVPN.sh b/scripts/makeOVPN.sh index d4ce274..e937475 100755 --- a/scripts/makeOVPN.sh +++ b/scripts/makeOVPN.sh @@ -272,8 +272,8 @@ echo "tls-auth Private Key found: $TA" 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_USER" "$INSTALL_HOME/ovpns/$NAME$FILEEXT" -chmod o-r "/etc/openvpn/easy-rsa/pki/$NAME$FILEEXT" -chmod o-r "$INSTALL_HOME/ovpns/$NAME$FILEEXT" +chmod 640 "/etc/openvpn/easy-rsa/pki/$NAME$FILEEXT" +chmod 640 "$INSTALL_HOME/ovpns/$NAME$FILEEXT" printf "\n\n" printf "========================================================\n" printf "\e[1mDone! %s successfully created!\e[0m \n" "$NAME$FILEEXT"