From f9afd195c070e92b20845cc317f5ffd1e8b17892 Mon Sep 17 00:00:00 2001 From: Izhikov Matvey Date: Mon, 6 Jan 2025 16:22:58 +0400 Subject: [PATCH] Fixed typos in the --db.path key when calling the openvpn-user command --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }