Skip to content

Commit f996bba

Browse files
committed
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.
1 parent 861ed05 commit f996bba

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ a corresponding [Digital Ocean Community Tutorial](http://bit.ly/1AGUZkq).
1818

1919
## Quick Start
2020

21-
* Pick a name for the `$OVPN_DATA` data volume container, it will be created automatically.
21+
* Pick a name for the `$OVPN_DATA` data volume container. It's recommended to
22+
use the `ovpn-data-` prefix to operate seamlessly with the reference systemd
23+
service. Users are encourage to replace `example` with a descriptive name of
24+
their choosing.
2225

23-
OVPN_DATA="ovpn-data"
26+
OVPN_DATA="ovpn-data-example"
2427

2528
* Initialize the `$OVPN_DATA` container that will hold the configuration files and certificates
2629

init/upstart.init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ start on filesystem and started docker
44
stop on runlevel [!2345]
55
respawn
66
script
7-
exec docker run -v ovpn-data:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
7+
exec docker run -v ovpn-data-example:/etc/openvpn --rm -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn
88
end script

0 commit comments

Comments
 (0)