From a17dfd7808ec232232265c9f394f090806e2e830 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Fri, 16 Sep 2016 07:36:12 -0700 Subject: [PATCH] copy_server_files: Include ccd directory * Include the client configuration directory * Related to #133 --- bin/ovpn_copy_server_files | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/ovpn_copy_server_files b/bin/ovpn_copy_server_files index 42fa827..49df414 100755 --- a/bin/ovpn_copy_server_files +++ b/bin/ovpn_copy_server_files @@ -29,13 +29,15 @@ FILES=( "pki/dh.pem" "pki/ta.key" "pki/ca.crt" + "ccd" ) +# Ensure the ccd directory exists, even if empty +mkdir -p "ccd" + # rsync isn't available to keep size down # cp --parents isn't in busybox version # hack the directory structure with tar tar cf - -C "${OPENVPN}" "${FILES[@]}" | tar xvf - -C "${TARGET}" -mkdir -p "$TARGET/ccd" - echo "Created the openvpn configuration for the server: $TARGET"