")
}
- _, err := exe_cmd("./apply")
+ _, err := exeCmd("./apply")
if err != nil {
fmt.Println("")
}
@@ -1459,45 +1468,39 @@ func _progress(stage string) int {
if stage == "register" {
return int(math.Round(curr / max))
- } else {
- curr += 2.0
}
+ curr += 2.0
if stage == "setup" {
return int(math.Round(curr / max))
- } else {
- curr += 3.0
}
+ curr += 3.0
if stage == "root-ca" {
return int(math.Round(curr / max))
- } else {
- curr += 4.0
}
+ curr += 4.0
if stage == "ca-int" {
return int(math.Round(curr / max))
- } else {
- curr += 3.0
}
+ curr += 3.0
if stage == "polling" {
return int(math.Round(curr / max))
- } else {
- curr += 4.0
}
+ curr += 4.0
if stage == "wrapup" {
return int(math.Round(curr / max))
- } else {
- curr += 3.0
}
+ curr += 3.0
if stage == "final" {
return int(math.Round(curr / max))
- } else {
- return 0
}
+
+ return 0
}
func _helptext(stage string) template.HTML {
@@ -1612,7 +1615,7 @@ func _setupBaseConfig(w http.ResponseWriter, r *http.Request) bool {
cfg := &SetupConfig{
Fqdn: r.Form.Get("fqdn"),
- Dns: r.Form.Get("dns"),
+ DNS: r.Form.Get("dns"),
DomainMode: r.Form.Get("domain_mode"),
LockdownDomains: r.Form.Get("lockdown_domains"),
WhitelistDomains: r.Form.Get("whitelist_domains"),
@@ -1624,13 +1627,13 @@ func _setupBaseConfig(w http.ResponseWriter, r *http.Request) bool {
return false
}
- matched, err := regexp.MatchString(":\\d+$", cfg.Dns)
+ matched, err := regexp.MatchString(":\\d+$", cfg.DNS)
if err == nil && !matched {
- cfg.Dns += ":53"
+ cfg.DNS += ":53"
}
viper.Set("labca.fqdn", cfg.Fqdn)
- viper.Set("labca.dns", cfg.Dns)
+ viper.Set("labca.dns", cfg.DNS)
viper.Set("labca.domain_mode", cfg.DomainMode)
if cfg.DomainMode == "lockdown" {
viper.Set("labca.lockdown", cfg.LockdownDomains)
@@ -1702,10 +1705,9 @@ func setupHandler(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, r.Header.Get("X-Request-Base")+"/wait?restart="+restartSecret, http.StatusFound)
}
return
-
- } else {
- render(w, r, "wrapup:manage", map[string]interface{}{"Progress": _progress("wrapup"), "HelpText": _helptext("wrapup")})
}
+
+ render(w, r, "wrapup:manage", map[string]interface{}{"Progress": _progress("wrapup"), "HelpText": _helptext("wrapup")})
}
func waitHandler(w http.ResponseWriter, r *http.Request) {
@@ -1989,12 +1991,12 @@ type navItem struct {
}
func _matchPrefix(uri string, prefix string) bool {
- return (uri == prefix || strings.HasPrefix(uri, prefix + "/"))
+ return (uri == prefix || strings.HasPrefix(uri, prefix+"/"))
}
func _acmeNav(active string, uri string, requestBase string) navItem {
isAcmeActive := _matchPrefix(uri, "/accounts") || _matchPrefix(uri, "/orders") ||
- _matchPrefix(uri, "/authz") || _matchPrefix(uri, "/challenges" ) ||
+ _matchPrefix(uri, "/authz") || _matchPrefix(uri, "/challenges") ||
_matchPrefix(uri, "/certificates") || false
accounts := navItem{
@@ -2132,7 +2134,7 @@ func activeNav(active string, uri string, requestBase string) []navItem {
"title": "Log Files",
},
IsActive: strings.HasPrefix(uri, "/logs/"),
- SubMenu: []navItem{cert, boulder, audit, labca, web, weberr},
+ SubMenu: []navItem{cert, boulder, audit, labca, web, weberr},
}
manage := navItem{
Name: "Manage",
diff --git a/gui/templates/views/manage.tmpl b/gui/templates/views/manage.tmpl
index 9c63bea..6cc9187 100644
--- a/gui/templates/views/manage.tmpl
+++ b/gui/templates/views/manage.tmpl
@@ -38,7 +38,7 @@
{{ if ne $item.TimestampRel "stopped" }}Up {{ end }}{{ $item.TimestampRel }}
- | {{ if or $item.LogUrl $item.LogTitle}}{{ end }} |
+ {{ if or $item.LogURL $item.LogTitle}}{{ end }} |
{{ range $btn := $item.Buttons }}
@@ -144,7 +144,7 @@
-
+
diff --git a/gui/templates/views/setup.tmpl b/gui/templates/views/setup.tmpl
index 62d78c0..c72c2e8 100644
--- a/gui/templates/views/setup.tmpl
+++ b/gui/templates/views/setup.tmpl
@@ -14,8 +14,8 @@
-
- {{ with .Errors.Dns }}
+
+ {{ with .Errors.DNS }}
{{ . }}
{{ end }}
diff --git a/install b/install
index 72adefe..3ccc6a0 100755
--- a/install
+++ b/install
@@ -24,7 +24,7 @@ dockerComposeVersion="1.22.0"
labcaUrl="https://github.com/hakwerk/labca/"
boulderUrl="https://github.com/letsencrypt/boulder/"
-boulderTag="release-2018-11-05"
+boulderTag="release-2018-12-10"
#
# Color configuration
|