art: Drop provider from c3os code

Part of: https://github.com/c3os-io/c3os/issues/68
This commit is contained in:
mudler
2022-08-10 18:56:07 +02:00
committed by Itxaka
parent 2844b7fc15
commit a8f5593beb
4 changed files with 316 additions and 0 deletions

18
sdk/bus/hooks.go Normal file
View File

@@ -0,0 +1,18 @@
package bus
import (
"os"
"os/exec"
)
func RunHookScript(s string) error {
_, err := os.Stat(s)
if err != nil {
return nil
}
cmd := exec.Command(s)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin
return cmd.Run()
}