From 2243edb3fe6d38b3c7629f6df4352afcf932da27 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sun, 17 Sep 2023 20:40:37 +0100 Subject: [PATCH] New command: make-vars - Print vars.example (here-doc) to stdout Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 5a7da3c..27db483 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -469,6 +469,9 @@ cmd_help() { # Test features text_only=1 text=" + Print vars.example here-doc to stdout: + make-vars + Make safessl-easyrsa.cnf file: mss|make-safe-ssl @@ -7304,6 +7307,14 @@ case "$cmd" in esac esac +# Run these commands with NO setup +case "$cmd" in + make-vars) + create_vars_example + cleanup ok + ;; +esac + # Intelligent env-var detection and auto-loading: vars_setup