summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Schmidt <berni@debian.org>2021-05-13 21:47:02 +0200
committerBernhard Schmidt <berni@debian.org>2021-05-13 21:47:02 +0200
commitb566f12d3c95e5af707c6683a4959a06af1d8194 (patch)
treece3e00568b05d5e80d439b0cd02ebdaf0cae45a8
parentf7be1241bce9ce4960dfcf708cc0a94c02ff55e0 (diff)
Fix easyrsa invocation in autopkgtest
The server-setup-with-ca autopkgtest was failing because easyrsa was interactively asking for input, although the EASYRSA_BATCH variable was set. Using the --batch command line option fixes this issue. Closes: #983662
-rwxr-xr-xdebian/tests/server-setup-with-ca8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/tests/server-setup-with-ca b/debian/tests/server-setup-with-ca
index 08a879e..b715de6 100755
--- a/debian/tests/server-setup-with-ca
+++ b/debian/tests/server-setup-with-ca
@@ -38,10 +38,10 @@ set_var EASYRSA_BATCH "1"
EOF
info "Setup the CA and the server keys"
-./easyrsa init-pki
-./easyrsa build-ca nopass 2>/dev/null
-./easyrsa build-server-full server nopass 2>/dev/null
-./easyrsa gen-dh 2>/dev/null
+./easyrsa --batch init-pki
+./easyrsa --batch build-ca nopass 2>/dev/null
+./easyrsa --batch build-server-full server nopass 2>/dev/null
+./easyrsa --batch gen-dh 2>/dev/null
info "Create the OpenVPN server config file"
cat << EOF > /etc/openvpn/server.conf