diff --git a/main.go b/main.go index dadd06c..1a8e538 100644 --- a/main.go +++ b/main.go @@ -1054,7 +1054,7 @@ func (oAdmin *OvpnAdmin) userRevoke(username string) (error, string) { } if *authByPassword { - o := runBash(fmt.Sprintf("openvpn-user revoke --db-path %s --user %s", *authDatabase, username)) + o := runBash(fmt.Sprintf("openvpn-user revoke --db.path %s --user %s", *authDatabase, username)) log.Debug(o) } @@ -1116,7 +1116,7 @@ func (oAdmin *OvpnAdmin) userUnrevoke(username string) (error, string) { _ = runBash(fmt.Sprintf("cd %s && %s gen-crl 1>/dev/null", *easyrsaDirPath, *easyrsaBinPath)) if *authByPassword { - o := runBash(fmt.Sprintf("openvpn-user restore --db-path %s --user %s", *authDatabase, username)) + o := runBash(fmt.Sprintf("openvpn-user restore --db.path %s --user %s", *authDatabase, username)) log.Debug(o) }