[Agent][Deploy] - update
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"os"
|
||||
"runtime"
|
||||
"text/template"
|
||||
"wdd.io/agent-common/assert"
|
||||
@@ -20,7 +21,7 @@ var log = logger.Log
|
||||
func init() {
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
ApplyFilePrefix = "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/deploy/z_5.5.0/"
|
||||
ApplyFilePrefix = "/home/wdd/IdeaProjects/ProjectOctopus/agent-operator/deploy/z_bjtg/"
|
||||
case "darwin": // macOS
|
||||
ApplyFilePrefix = "MacOS value"
|
||||
case "windows":
|
||||
@@ -29,6 +30,7 @@ func init() {
|
||||
ApplyFilePrefix = "Unknown OS"
|
||||
}
|
||||
|
||||
_ = os.Mkdir(ApplyFilePrefix, os.ModePerm)
|
||||
fmt.Printf("ApplyFilePrefix: %s\n", ApplyFilePrefix)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user