summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--indexHtml.go2
-rw-r--r--main.go3
3 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4b3227e..5109e63 100644
--- a/Makefile
+++ b/Makefile
@@ -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>")
}
diff --git a/main.go b/main.go
index 0e1b544..705f302 100644
--- a/main.go
+++ b/main.go
@@ -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