From b566f12d3c95e5af707c6683a4959a06af1d8194 Mon Sep 17 00:00:00 2001 From: Bernhard Schmidt Date: Thu, 13 May 2021 21:47:02 +0200 Subject: 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 --- debian/tests/server-setup-with-ca | 8 ++++---- 1 file 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 -- cgit v1.2.3