1
0
Fork 0
mirror of synced 2025-01-19 02:06:09 -05:00

Fixed typos in the --db.path key when calling the openvpn-user command

This commit is contained in:
Izhikov Matvey 2025-01-06 16:22:58 +04:00
parent 51f35a0b15
commit f9afd195c0

View file

@ -1054,7 +1054,7 @@ func (oAdmin *OvpnAdmin) userRevoke(username string) (error, string) {
} }
if *authByPassword { 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) 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)) _ = runBash(fmt.Sprintf("cd %s && %s gen-crl 1>/dev/null", *easyrsaDirPath, *easyrsaBinPath))
if *authByPassword { 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) log.Debug(o)
} }