Merge pull request #66 from ypid/copy_server_not_symlink
ovpn_copy_server_files: Copy openvpn.conf instead of symlinking locally.
This commit is contained in:
commit
41f7fd22ad
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user