We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 097cca6 commit 6ec9abeCopy full SHA for 6ec9abe
superd/code/superd.go
@@ -587,16 +587,17 @@ func logRequest(handler http.Handler) http.Handler {
587
}
588
589
func getHostSuperDir() string {
590
-
+ default_dir := "/home/spr/super/"
591
f := "'{{index .Config.Labels \"com.docker.compose.project.working_dir\"}}'"
592
593
cmd := exec.Command("docker", "inspect", "--format="+f, "superd")
594
stdout, err := cmd.Output()
595
596
if err != nil {
597
fmt.Println("[-]", err)
598
- return ""
+ return default_dir
599
600
+
601
return strings.Trim(string(stdout), "'\n") + "/"
602
603
0 commit comments