fix script execution

This commit is contained in:
Andrew Wang 2022-07-15 04:46:20 +00:00
parent 6025e48049
commit 565d1b697c
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}