From 816eff9af654e8be8e775bd653a395ac6b317f0f Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 9 Jul 2014 12:09:27 -0700 Subject: [PATCH] docs: openvpn-data -> $OVPN_DATA * Easier to work with. --- docs/backup.md | 4 ++-- docs/static-ips.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/backup.md b/docs/backup.md index a16ee26..04ca7fa 100644 --- a/docs/backup.md +++ b/docs/backup.md @@ -11,8 +11,8 @@ TL;DR Protect the resulting archive file, by ensure there is very limited access ## Backup to Archive - docker run --volumes-from openvpn-data --rm busybox tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz + docker run --volumes-from $OVPN_DATA --rm busybox tar -cvf - -C /etc openvpn | xz > openvpn-backup.tar.xz ## Retore to New Image - xzcat openvpn-backup.tar.xz | docker run --name openvpn-data -v /etc/openvpn -i busybox tar -xvf - -C /etc + xzcat openvpn-backup.tar.xz | docker run --name $OVPN_DATA -v /etc/openvpn -i busybox tar -xvf - -C /etc diff --git a/docs/static-ips.md b/docs/static-ips.md index 39ccfe2..38fcbc2 100644 --- a/docs/static-ips.md +++ b/docs/static-ips.md @@ -6,19 +6,19 @@ The docker image is setup for static client configuration on the 192.168.254.0/2 1. Create a client specific configuration: - $ echo "ifconfig-push 192.168.254.1 192.168.254.2" | docker run --volumes-from openvpn-data -i --rm kylemanna/openvpn tee /etc/openvpn/ccd/CERT_COMMON_NAME + $ echo "ifconfig-push 192.168.254.1 192.168.254.2" | docker run --volumes-from $OVPN_DATA -i --rm kylemanna/openvpn tee /etc/openvpn/ccd/CERT_COMMON_NAME ifconfig-push 192.168.254.1 192.168.254.2 2. Wait for client to reconnect if necessary ## Advanced Admin -Login to the openvpn-data volume with a `bash` container, note only changes in /etc/openvpn will persist: +Login to the data volume with a `bash` container, note only changes in /etc/openvpn will persist: - docker run --volumes-from openvpn-data -it --rm kylemanna/openvpn bash -l + docker run --volumes-from $OVPN_DATA -it --rm kylemanna/openvpn bash -l ## Upgrading from Old OpenVPN Configurations If you're running an old configuration and need to upgrade it to pull in the ccd directory run the following: - docker run --volumes-from openvpn-data --rm kylemanna/openvpn ovpn_genconfig + docker run --volumes-from $OVPN_DATA --rm kylemanna/openvpn ovpn_genconfig