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:
Kyle Manna 2015-09-07 20:03:09 -07:00
commit 41f7fd22ad

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"