Merge pull request #49 from ypid/copy-server-create-ccd

Create ccd directory to prevent error if /etc is mounted read-only.
This commit is contained in:
Kyle Manna 2015-05-31 16:00:39 -07:00
commit 868da2ddac

View File

@ -27,5 +27,6 @@ pki/ca.crt
--files-from - \ --files-from - \
"$OPENVPN/" "$TARGET" "$OPENVPN/" "$TARGET"
ln --symbolic --force ../openvpn.conf ../ovpn_env.sh "$TARGET" ln --symbolic --force ../openvpn.conf ../ovpn_env.sh "$TARGET"
mkdir -p "$TARGET/ccd"
echo "Created the openvpn configuration for the server: $TARGET" echo "Created the openvpn configuration for the server: $TARGET"