diff options
| author | Jeff Carr <[email protected]> | 2024-02-07 22:14:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-07 22:14:38 -0600 |
| commit | 0fec5555ddd8574a831fb9e7e1d0b69a44b49a21 (patch) | |
| tree | c911fa75a5c5c15af33eac5722bfdaa369ff744f | |
| parent | 0b6afc879ac2df2e7dd145036e5ab0a973fc503e (diff) | |
miscv0.20.2
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | indexHtml.go | 2 | ||||
| -rw-r--r-- | main.go | 3 |
3 files changed, 6 insertions, 4 deletions
@@ -2,9 +2,8 @@ all: echo "build it!" # GO111MODULE=off go get -u -v . GO111MODULE=off go build -v -x - # sudo setcap 'cap_net_bind_service=+ep' go.wit.com - ./go.wit.com - @# ./myrepos >/tmp/myrepos.stderr 2>&1 + su -c ./go.wit.com + # su -c "setcap 'cap_net_bind_service=+ep' go.wit.com" goimports: goimports -w *.go diff --git a/indexHtml.go b/indexHtml.go index 3fe8d9c..a00ef10 100644 --- a/indexHtml.go +++ b/indexHtml.go @@ -53,7 +53,7 @@ func indexBodyStart(w http.ResponseWriter) { } func insertHTMLnote(w http.ResponseWriter, i int, parts []string) { - log.Info("comment # line:", i, strings.Join(parts, " ")) + // log.Info("comment # line:", i, strings.Join(parts, " ")) fmt.Fprintln(w, " <tr> <td><h3>", strings.Join(parts, " "), "</h3></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>") } @@ -64,6 +64,9 @@ func okHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, j) return } + if tmp == "/update" { + return + } if tmp == "/list" { findFile(w, "files/repomap") return |
