1
0

🏗️」 wip: Removed ftp server and started borgbackup container

This commit is contained in:
2025-03-03 15:18:16 +01:00
parent 2673f6ef0b
commit 25ec0ebb31
9 changed files with 228 additions and 175 deletions

View File

@ -7,13 +7,11 @@ import (
_log "git.keyzox.me/42_adjoly/inception/internal/log"
)
func ExecCmd(cmdStr []string) {
func ExecCmd(cmdStr []string) error {
cmd := exec.Command(cmdStr[0], cmdStr...)
cmd.Env = os.Environ()
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
cmd.Stdin = os.Stdin
if err := cmd.Run(); err != nil {
_log.Log("error", "Could not execute : " + cmdStr[0])
}
return cmd.Run()
}