readd directory

This commit is contained in:
Antoine Ouvrard committed 2023-03-09 17:29:50 +01:00
1 parent be5eb0822b
commit 3fe3b6e90a
23 files changed
+1016

No files matched your search

@@ -0,0 +1,22 @@
package zxsuite
import (
"log"
"os/exec"
)
func CmdZxSuite(module string, cmd string) ([]byte, error) {
outputZx, err := exec.Command("sudo", "-u", "zimbra", "/opt/zimbra/bin/zxsuite", "--json", module, cmd).Output()
if err != nil {
log.Fatal(err)
}
return outputZx, nil
}
func CmdZmcontrol(cmd string) ([]byte, error) {
outputZmcontrol, err := exec.Command("sudo", "-u", "zimbra", "/opt/zimbra/bin/zmcontrol", cmd).Output()
if err != nil {
log.Fatal(err)
}
return outputZmcontrol, nil
}