Archived
1

feat: добавлен лог

This commit is contained in:
2025-01-19 14:43:22 +03:00
parent b174d10f20
commit 96c1138d5c
2 changed files with 3 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ var (
var rootCmd = &cobra.Command{
Use: "playbookctl",
Short: "Ansible Playbook Dedic2 Control",
Version: "4.0.1",
Version: "4.0.2",
RunE: func(cmd *cobra.Command, _ []string) error {
return cmd.Help()
},

View File

@@ -62,6 +62,8 @@ func (app *SpaceWorker) Backup(generateOnly bool, targetHost string, roles ...st
return err
}
app.log.Info("Clean Files")
command = exec.Command("/bin/bash", "-c", postBackupFile+"_clean")
command.Dir = app.workDir
command.Stdin = os.Stdin