add notes for mirrors.wit.com
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
50d4acb9c1
commit
6ed4a6924c
10
indexHtml.go
10
indexHtml.go
|
@ -6,6 +6,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func indexHeader(w http.ResponseWriter) {
|
func indexHeader(w http.ResponseWriter) {
|
||||||
|
@ -31,6 +32,14 @@ func indexHeader(w http.ResponseWriter) {
|
||||||
func indexBodyStart(w http.ResponseWriter) {
|
func indexBodyStart(w http.ResponseWriter) {
|
||||||
// fmt.Fprintln(w, "
|
// fmt.Fprintln(w, "
|
||||||
fmt.Fprintln(w, "<body>")
|
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=\"container\">")
|
||||||
fmt.Fprintln(w, " <div class=\"row\">")
|
fmt.Fprintln(w, " <div class=\"row\">")
|
||||||
fmt.Fprintln(w, " <table class=\"u-full-width\">")
|
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 {
|
if len(parts) > 1 {
|
||||||
version = parts[1]
|
version = parts[1]
|
||||||
}
|
}
|
||||||
|
log.Warn("gourl ", gourl, "vtime =", vtime, "version =", version)
|
||||||
|
|
||||||
if vtime != "" {
|
if vtime != "" {
|
||||||
// Convert the string to an integer
|
// Convert the string to an integer
|
||||||
|
|
Loading…
Reference in New Issue