From f62e0bf0cd97d55301d58e1789c8b381159d9e14 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Mon, 8 Sep 2025 20:16:43 -0500 Subject: [PATCH] Cleaning up the revoke client function and starting on the create client function in the vpn controller. --- src/controllers/vpn.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/vpn.controller.js b/src/controllers/vpn.controller.js index 25d0127..5f6f8eb 100644 --- a/src/controllers/vpn.controller.js +++ b/src/controllers/vpn.controller.js @@ -58,7 +58,7 @@ module.exports = { conn.on( 'ready', () => { const commands = [ `cd /etc/openvpn/easy-rsa`, - `./easyrsa build-client-full ${ clientName } nopass`, + `./easyrsa build-client-full ${ clientName } nopass --batch`, `mkdir -p /etc/openvpn/client-configs`, staticIp ? `echo "ifconfig-push ${ staticIp } 255.255.255.0" > /etc/openvpn/client-configs/${ clientName }.ccd` : 'true', `/usr/share/easy-rsa/pkitool ${ clientName }`, -- 2.43.0