add notes for mirrors.wit.com

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-03 04:09:46 -06:00
parent 50d4acb9c1
commit 6ed4a6924c
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import (
"strconv"
"strings"
"time"
"go.wit.com/log"
)
func indexHeader(w http.ResponseWriter) {
@ -31,6 +32,14 @@ func indexHeader(w http.ResponseWriter) {
func indexBodyStart(w http.ResponseWriter) {
// fmt.Fprintln(w, "
fmt.Fprintln(w, "<body>")
fmt.Fprintln(w, " <br>")
fmt.Fprintln(w, "There are debian packages for most of these:<br>")
fmt.Fprintln(w, " <br>")
fmt.Fprintln(w, "echo deb http://mirrors.wit.com/wit/ sid main > /etc/apt/sources.list.d/wit.list <br>")
fmt.Fprintln(w, "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4A854AEAF7E0E16D <br>")
fmt.Fprintln(w, "apt update<br>")
fmt.Fprintln(w, "apt install go-clone<br>")
fmt.Fprintln(w, " <br>")
fmt.Fprintln(w, " <div class=\"container\">")
fmt.Fprintln(w, " <div class=\"row\">")
fmt.Fprintln(w, " <table class=\"u-full-width\">")
@ -112,6 +121,7 @@ func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, desc stri
if len(parts) > 1 {
version = parts[1]
}
log.Warn("gourl ", gourl, "vtime =", vtime, "version =", version)
if vtime != "" {
// Convert the string to an integer