From 565d1b697c4ab10a5ff5d46b9b5a33a4afd753f8 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Fri, 15 Jul 2022 04:46:20 +0000 Subject: [PATCH] fix script execution --- merlin/sync/process.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/merlin/sync/process.go b/merlin/sync/process.go index 867568c..f26b71e 100644 --- a/merlin/sync/process.go +++ b/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)) }