From 2b3aaca9af94cee025c97f6046661e66b3aaf6e2 Mon Sep 17 00:00:00 2001 From: Lucas Fauchille <44966930+lfauchille@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:38:39 +0200 Subject: [PATCH] fix: revoking username instead of easyRsaBin --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index fb7e44e..18e6e02 100644 --- a/main.go +++ b/main.go @@ -1048,7 +1048,7 @@ func (oAdmin *OvpnAdmin) userRevoke(username string) (error, string) { log.Error(err) } } else { - o := runBash(fmt.Sprintf("cd %s && echo yes | easyrsa revoke %s 1>/dev/null && %s gen-crl 1>/dev/null", *easyrsaDirPath, *easyrsaBinPath, username)) + o := runBash(fmt.Sprintf("cd %s && echo yes | easyrsa revoke %s 1>/dev/null && %s gen-crl 1>/dev/null", *easyrsaDirPath, username, *easyrsaBinPath)) log.Debugln(o) }