Merge pull request #5 from Coffey-Labs/chore/us-spelling-license

Use American English spelling
This commit is contained in:
jcoffey
2026-09-15 11:47:13 -07:00
committed by GitHub
5 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -830,7 +830,7 @@ ports and the real `Caddyfile`. It then checks, among other things, that:
verify for the mail host; verify for the mail host;
- the webmail, Stalwart's JMAP and autoconfig are served over verified HTTPS, and - the webmail, Stalwart's JMAP and autoconfig are served over verified HTTPS, and
a user signs in through the webmail; a user signs in through the webmail;
- `dns-records.zone` holds the MX and DKIM records, and `certs` recognises an - `dns-records.zone` holds the MX and DKIM records, and `certs` recognizes an
existing certificate; existing certificate;
- a scanner probing through Caddy is banned by its own address, not Caddy's, and - a scanner probing through Caddy is banned by its own address, not Caddy's, and
other clients still get through; other clients still get through;
@@ -872,6 +872,6 @@ public issue.
AGPL-3.0-or-later, the same as ihasmail. See [LICENSE](LICENSE). AGPL-3.0-or-later, the same as ihasmail. See [LICENSE](LICENSE).
Running the tool to deploy your own mail host places no obligations on you. The Running the tool to deploy your own mail host places no obligations on you. The
licence matters if you modify the tool and offer it to others, including as a license matters if you modify the tool and offer it to others, including as a
hosted service that deploys on their behalf: then your modified source must be hosted service that deploys on their behalf: then your modified source must be
available to them. available to them.
+2 -2
View File
@@ -142,7 +142,7 @@ Flags:
if err != nil { if err != nil {
return err return err
} }
summarise(plan, res, log) summarize(plan, res, log)
return nil return nil
} }
@@ -171,7 +171,7 @@ func describe(p config.Plan, log deploy.Log) {
} }
} }
func summarise(p config.Plan, r *deploy.Result, log deploy.Log) { func summarize(p config.Plan, r *deploy.Result, log deploy.Log) {
log.Step("done") log.Step("done")
if p.Local { if p.Local {
log.Info("webmail http://%s", p.WebmailBind) log.Info("webmail http://%s", p.WebmailBind)
+1 -1
View File
@@ -173,7 +173,7 @@ ok "dns-records.zone has the MX and DKIM records"
certs_out=$("$BIN" certs --dir "$DEPLOY" 2>&1 || true) certs_out=$("$BIN" certs --dir "$DEPLOY" 2>&1 || true)
grep -q "already holds a certificate for $MAIL" <<<"$certs_out" || die "certs did not see the existing certificate: $certs_out" grep -q "already holds a certificate for $MAIL" <<<"$certs_out" || die "certs did not see the existing certificate: $certs_out"
ok "certs recognises the certificate already issued" ok "certs recognizes the certificate already issued"
# --- the auto-ban ------------------------------------------------------------- # --- the auto-ban -------------------------------------------------------------
# Last, so nothing earlier can be affected by a ban. Scans come from throwaway # Last, so nothing earlier can be affected by a ban. Scans come from throwaway
+4 -4
View File
@@ -123,7 +123,7 @@ var (
imageRE = regexp.MustCompile(`^[a-z0-9][a-z0-9._/-]*(?::[A-Za-z0-9._-]+)?(?:@sha256:[a-f0-9]{64})?$`) imageRE = regexp.MustCompile(`^[a-z0-9][a-z0-9._/-]*(?::[A-Za-z0-9._-]+)?(?:@sha256:[a-f0-9]{64})?$`)
) )
func normaliseHost(s string) string { func normalizeHost(s string) string {
return strings.TrimSuffix(strings.ToLower(strings.TrimSpace(s)), ".") return strings.TrimSuffix(strings.ToLower(strings.TrimSpace(s)), ".")
} }
@@ -136,7 +136,7 @@ func (o Options) Validate() (Plan, error) {
p := Plan{Local: o.Local} p := Plan{Local: o.Local}
p.Domain = normaliseHost(o.Domain) p.Domain = normalizeHost(o.Domain)
switch { switch {
case p.Domain == "" && o.Local: case p.Domain == "" && o.Local:
p.Domain = "example.test" p.Domain = "example.test"
@@ -153,7 +153,7 @@ func (o Options) Validate() (Plan, error) {
p.Domain = "domain.invalid" p.Domain = "domain.invalid"
} }
p.MailHost = normaliseHost(o.MailHost) p.MailHost = normalizeHost(o.MailHost)
if p.MailHost == "" { if p.MailHost == "" {
p.MailHost = "mail." + p.Domain p.MailHost = "mail." + p.Domain
} }
@@ -164,7 +164,7 @@ func (o Options) Validate() (Plan, error) {
fail("--mail-host %q must be one label under the domain, e.g. mail.%s", o.MailHost, p.Domain) fail("--mail-host %q must be one label under the domain, e.g. mail.%s", o.MailHost, p.Domain)
} }
p.WebmailHost = normaliseHost(o.WebmailHost) p.WebmailHost = normalizeHost(o.WebmailHost)
if p.WebmailHost == "" { if p.WebmailHost == "" {
p.WebmailHost = "webmail." + p.Domain p.WebmailHost = "webmail." + p.Domain
} }
+1 -1
View File
@@ -48,7 +48,7 @@ func Versions(ctx context.Context) (engine, compose string, err error) {
return engine, compose, nil return engine, compose, nil
} }
// ProjectLeftovers lists containers, volumes and networks already labelled // ProjectLeftovers lists containers, volumes and networks already labeled
// with a compose project name. Any at all means an earlier run of the same // with a compose project name. Any at all means an earlier run of the same
// project, and its volumes would hand a "fresh" deployment an old server. // project, and its volumes would hand a "fresh" deployment an old server.
func ProjectLeftovers(ctx context.Context, project string) ([]string, error) { func ProjectLeftovers(ctx context.Context, project string) ([]string, error) {