Skip to content

Commit 6ec9abe

Browse files
authored
Use 24.04.3 #patch (#437)
* [installer] Use 24.04.3 * [superd] Use default superdir
1 parent 097cca6 commit 6ec9abe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

superd/code/superd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,16 +587,17 @@ func logRequest(handler http.Handler) http.Handler {
587587
}
588588

589589
func getHostSuperDir() string {
590-
590+
default_dir := "/home/spr/super/"
591591
f := "'{{index .Config.Labels \"com.docker.compose.project.working_dir\"}}'"
592592

593593
cmd := exec.Command("docker", "inspect", "--format="+f, "superd")
594594
stdout, err := cmd.Output()
595595

596596
if err != nil {
597597
fmt.Println("[-]", err)
598-
return ""
598+
return default_dir
599599
}
600+
600601
return strings.Trim(string(stdout), "'\n") + "/"
601602
}
602603

0 commit comments

Comments
 (0)