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.
This commit is contained in:
Robin Schneider 2015-08-27 21:19:27 +02:00
parent 74c4ca94a7
commit 3df53012b6
No known key found for this signature in database
GPG Key ID: 489A4D5EC353C98A

View File

@ -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"