From 3df53012b6cdbd259257f8ca0eed9b582969d522 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Thu, 27 Aug 2015 21:19:27 +0200 Subject: [PATCH] ovpn_copy_server_files: Copy openvpn.conf instead of symlinking locally. Symlinked files can be resolved by rsync when using the configuration on remote servers but for local testing having the actual file is beneficial. --- bin/ovpn_copy_server_files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ovpn_copy_server_files b/bin/ovpn_copy_server_files index fdc62be..be92f0e 100755 --- a/bin/ovpn_copy_server_files +++ b/bin/ovpn_copy_server_files @@ -21,6 +21,8 @@ fi rm --recursive --force "$TARGET/pki/private" "$TARGET/pki/issued" echo " +openvpn.conf +ovpn_env.sh pki/private/${OVPN_CN}.key pki/issued/${OVPN_CN}.crt pki/dh.pem @@ -29,7 +31,6 @@ pki/ca.crt " | rsync --recursive --verbose \ --files-from - \ "$OPENVPN/" "$TARGET" -ln --symbolic --force ../openvpn.conf ../ovpn_env.sh "$TARGET" mkdir -p "$TARGET/ccd" echo "Created the openvpn configuration for the server: $TARGET"