fix: revoking username instead of easyRsaBin
This commit is contained in:
parent
35f76ec3b6
commit
2b3aaca9af
2
main.go
2
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue