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:
parent
74c4ca94a7
commit
3df53012b6
@ -21,6 +21,8 @@ fi
|
|||||||
rm --recursive --force "$TARGET/pki/private" "$TARGET/pki/issued"
|
rm --recursive --force "$TARGET/pki/private" "$TARGET/pki/issued"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
openvpn.conf
|
||||||
|
ovpn_env.sh
|
||||||
pki/private/${OVPN_CN}.key
|
pki/private/${OVPN_CN}.key
|
||||||
pki/issued/${OVPN_CN}.crt
|
pki/issued/${OVPN_CN}.crt
|
||||||
pki/dh.pem
|
pki/dh.pem
|
||||||
@ -29,7 +31,6 @@ pki/ca.crt
|
|||||||
" | rsync --recursive --verbose \
|
" | rsync --recursive --verbose \
|
||||||
--files-from - \
|
--files-from - \
|
||||||
"$OPENVPN/" "$TARGET"
|
"$OPENVPN/" "$TARGET"
|
||||||
ln --symbolic --force ../openvpn.conf ../ovpn_env.sh "$TARGET"
|
|
||||||
mkdir -p "$TARGET/ccd"
|
mkdir -p "$TARGET/ccd"
|
||||||
|
|
||||||
echo "Created the openvpn configuration for the server: $TARGET"
|
echo "Created the openvpn configuration for the server: $TARGET"
|
||||||
|
Loading…
Reference in New Issue
Block a user