summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-03-25 00:03:15 +0200
committerPaul Buetow <paul@buetow.org>2024-03-25 00:03:15 +0200
commit00380954b8cd1a8a934b111a17fccd4ab0826f94 (patch)
tree9c5330d2e0546073a348c4384e8813e694761d8b
parent65a968161c1157d7c5d86367dee3020b7591903f (diff)
add solarcat.buetow.org TLS certs
-rw-r--r--frontends/Rexfile2
-rw-r--r--frontends/scripts/dns-failover.ksh2
2 files changed, 2 insertions, 2 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile
index 6a97f36..b486d29 100644
--- a/frontends/Rexfile
+++ b/frontends/Rexfile
@@ -73,7 +73,7 @@ our $secrets = sub { read_file './secrets/' . shift };
our @dns_zones = qw/buetow.org dtail.dev foo.zone irregular.ninja snonux.foo/;
our @dns_zones_remove = qw/paul.cyou ha.buetow.org/;
-our @acme_hosts = qw/buetow.org paul.buetow.org dory.buetow.org fotos.buetow.org znc.buetow.org dtail.dev foo.zone irregular.ninja snonux.foo/;
+our @acme_hosts = qw/buetow.org paul.buetow.org dory.buetow.org solarcat.buetow.org fotos.buetow.org znc.buetow.org dtail.dev foo.zone irregular.ninja snonux.foo/;
# UTILITY TASKS
diff --git a/frontends/scripts/dns-failover.ksh b/frontends/scripts/dns-failover.ksh
index 57f2aee..dfc24ee 100644
--- a/frontends/scripts/dns-failover.ksh
+++ b/frontends/scripts/dns-failover.ksh
@@ -10,7 +10,7 @@ determine_master_and_standby () {
# Weekly auto-failover for Let's Encrypt automation
local -i -r week_of_the_year=$(date +%U)
- if [ $(( week_of_the_year % 2 )) -eq 0 ]; then
+ if [ $(( week_of_the_year % 2 )) -ne 0 ]; then
local tmp=$master
master=$standby
standby=$tmp