unveil: reorder
This commit is contained in:
parent
d58151dbb0
commit
2fe14eca63
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -20,6 +20,10 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := Unveil("/usr/local/bin/git", "rx"); err != nil {
|
||||||
|
log.Fatalf("unveil: %s", err)
|
||||||
|
}
|
||||||
|
|
||||||
if err := UnveilPaths([]string{
|
if err := UnveilPaths([]string{
|
||||||
c.Dirs.Static,
|
c.Dirs.Static,
|
||||||
c.Repo.ScanPath,
|
c.Repo.ScanPath,
|
||||||
|
@ -29,10 +33,6 @@ func main() {
|
||||||
log.Fatalf("unveil: %s", err)
|
log.Fatalf("unveil: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := Unveil("/usr/local/bin/git", "rx"); err != nil {
|
|
||||||
log.Fatalf("unveil: %s", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
mux := routes.Handlers(c)
|
mux := routes.Handlers(c)
|
||||||
addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port)
|
addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port)
|
||||||
log.Println("starting server on", addr)
|
log.Println("starting server on", addr)
|
||||||
|
|
Loading…
Reference in a new issue