From 2fe14eca63e9d3e907c7b725407c146a82cc129f Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Thu, 22 Dec 2022 16:18:15 +0530 Subject: unveil: reorder --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 628925a..3827eee 100644 --- a/main.go +++ b/main.go @@ -20,6 +20,10 @@ func main() { log.Fatal(err) } + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { + log.Fatalf("unveil: %s", err) + } + if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, @@ -29,10 +33,6 @@ func main() { log.Fatalf("unveil: %s", err) } - if err := Unveil("/usr/local/bin/git", "rx"); err != nil { - log.Fatalf("unveil: %s", err) - } - mux := routes.Handlers(c) addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) log.Println("starting server on", addr) -- cgit