Skip to content

Commit a17dfd7

Browse files
committed
copy_server_files: Include ccd directory
* Include the client configuration directory * Related to #133
1 parent 62b6cc3 commit a17dfd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/ovpn_copy_server_files

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ FILES=(
2929
"pki/dh.pem"
3030
"pki/ta.key"
3131
"pki/ca.crt"
32+
"ccd"
3233
)
3334

35+
# Ensure the ccd directory exists, even if empty
36+
mkdir -p "ccd"
37+
3438
# rsync isn't available to keep size down
3539
# cp --parents isn't in busybox version
3640
# hack the directory structure with tar
3741
tar cf - -C "${OPENVPN}" "${FILES[@]}" | tar xvf - -C "${TARGET}"
3842

39-
mkdir -p "$TARGET/ccd"
40-
4143
echo "Created the openvpn configuration for the server: $TARGET"

0 commit comments

Comments
 (0)