From f5094340aa91358e5e85f7f5b8dc96aa9a4cbef8 Mon Sep 17 00:00:00 2001 From: "Dominic Dumrauf (MacBook Pro 2017)" Date: Wed, 18 Sep 2019 08:51:35 +0100 Subject: [PATCH] Updating documentation around existing headless user addition feature This closes https://github.com/angristan/openvpn-install/issues/422 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 780412b..3d9d691 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,20 @@ Other variables can be set depending on your choice (encryption, compression). Y Password-protected clients are not supported by the headless installation method since user input is expected by Easy-RSA. +### Headless User Addition + +It's also possible to automate the addition of a new user. Here, the key is to provide the (string) value of the `MENU_OPTION` variable along with the remaining mandatory variables before invoking the script. + +The following Bash script adds a new user `foo` to an existing OpenVPN configuration +```bash +#!/bin/bash +export MENU_OPTION="1" +export CLIENT="foo" +export PASS="1" +./openvpn-install.sh +``` + + ## Features - Installs and configures a ready-to-use OpenVPN server