From f996bbaa8e8a8337424f6e5fb80df39c1925354a Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 10 May 2017 08:14:51 -0700 Subject: [PATCH] README: Clarify volume naming convention * Use a better default that works with systemd service out of the box. * Update upstart init script to follow convention. --- README.md | 7 +++++-- init/upstart.init | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8d7ad20..50002ec 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,12 @@ a corresponding [Digital Ocean Community Tutorial](http://bit.ly/1AGUZkq). ## Quick Start -* Pick a name for the `$OVPN_DATA` data volume container, it will be created automatically. +* Pick a name for the `$OVPN_DATA` data volume container. It's recommended to + use the `ovpn-data-` prefix to operate seamlessly with the reference systemd + service. Users are encourage to replace `example` with a descriptive name of + their choosing. - OVPN_DATA="ovpn-data" + OVPN_DATA="ovpn-data-example" * Initialize the `$OVPN_DATA` container that will hold the configuration files and certificates diff --git a/init/upstart.init b/init/upstart.init index aebe59f..e876ed7 100644 --- a/init/upstart.init +++ b/init/upstart.init @@ -4,5 +4,5 @@ start on filesystem and started docker stop on runlevel [!2345] respawn script - exec docker run -v ovpn-data:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn + exec docker run -v ovpn-data-example:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn end script