make a footer file

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-11-06 16:51:29 -06:00
parent 9242d7a35f
commit 316f169bc0
3 changed files with 10 additions and 8 deletions

View File

@ -153,14 +153,6 @@ func indexDivEnd(w http.ResponseWriter) {
} }
func indexBodyEnd(w http.ResponseWriter) { func indexBodyEnd(w http.ResponseWriter) {
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 # replicates the old 'go get' behavior<br>")
fmt.Fprintln(w, "apt install go-deb # make a debian package from a golang project<br>")
fmt.Fprintln(w, "apt install networkquality # debian package of apple's command line speedtest tool<br>")
fmt.Fprintln(w, "apt install virtigo # virt-manager from the command line (runs wit.com)<br>")
fmt.Fprintln(w, " </body>") fmt.Fprintln(w, " </body>")
fmt.Fprintln(w, " </html>") fmt.Fprintln(w, " </html>")
} }

View File

@ -54,6 +54,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyStart(w) indexBodyStart(w)
indexBodyScanConfig(w) indexBodyScanConfig(w)
indexDivEnd(w) indexDivEnd(w)
writeFile(w, "footer.html")
indexBodyEnd(w) indexBodyEnd(w)
return return
} }

9
resources/footer.html Normal file
View File

@ -0,0 +1,9 @@
<br>
echo deb http://mirrors.wit.com/wit/ sid main > /etc/apt/sources.list.d/wit.list <br>
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4A854AEAF7E0E16D <br>
apt update<br>
apt install go-clone # replicates the old 'go get' behavior<br>
apt install go-deb # make a debian package from a golang project<br>
apt install networkquality # debian package of apple's command line speedtest tool<br>
apt install virtigo # virt-manager from the command line (runs wit.com)<br>
<br>