Create ccd directory to prevent error if /etc is mounted read-only.

* mkdir: cannot create directory '/etc/openvpn/ccd': Read-only file system
This commit is contained in:
Robin Schneider 2015-05-31 22:10:54 +02:00
parent e0f7856e6f
commit 7399ff7bbd
No known key found for this signature in database
GPG Key ID: 489A4D5EC353C98A

View File

@ -27,5 +27,6 @@ pki/ca.crt
--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"