rework version slightly

Ted Unangst 5 years ago
parent f9372bd8b7
commit 43a87b77c4

@ -28,7 +28,7 @@ import (
"time"
)
var honkVersion = "honk 0.8.1-dev"
var softwareVersion = "develop"
func init() {
notrand.Seed(time.Now().Unix())
@ -213,7 +213,7 @@ func main() {
case "upgrade":
upgradedb()
case "version":
fmt.Println(honkVersion)
fmt.Println(softwareVersion)
os.Exit(0)
}
db := opendatabase()

@ -1901,7 +1901,7 @@ func servehtml(w http.ResponseWriter, r *http.Request) {
templinfo := getInfo(r)
templinfo["AboutMsg"] = aboutMsg
templinfo["LoginMsg"] = loginMsg
templinfo["HonkVersion"] = honkVersion
templinfo["HonkVersion"] = softwareVersion
if r.URL.Path == "/about" {
templinfo["Sensors"] = getSensors()
}

Loading…
Cancel
Save