fix script execution

pull/3/head
Andrew Wang 5 months ago
parent 6025e48049
commit 565d1b697c
  1. 4
      merlin/sync/process.go

@ -134,7 +134,7 @@ func zfsSync(repo *config.Repo) {
repo.Logger.Debug("Would run a zfssync if not disabled")
return
out, err := exec.Command("/home/mirror/bin/zfssync", repo.Name).CombinedOutput()
out, err := exec.Command("/bin/sh", "/home/mirror/bin/zfssync", repo.Name).CombinedOutput()
if err != nil {
repo.Logger.Error(err)
} else {
@ -153,7 +153,7 @@ func reportMirror(repo *config.Repo) {
}
repo.Logger.Debug("Running report_mirror")
err := exec.Command("/home/mirror/bin/report_mirror").Run()
err := exec.Command("/bin/sh", "/home/mirror/bin/report_mirror").Run()
if err != nil {
repo.Logger.Error(fmt.Errorf("Error running report_mirror: %w", err))
}

Loading…
Cancel
Save