diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-23 16:38:20 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-23 16:38:20 +0200 |
| commit | 6234c37e43aa0675cc9273e3b50c727129c83d22 (patch) | |
| tree | fbb96e226e9baae4b2a56849147e58ad71e024ce /frontends/scripts | |
| parent | 0bc6c85eac08999d95623ea80ac54942b5a956cb (diff) | |
failovr
Diffstat (limited to 'frontends/scripts')
| -rw-r--r-- | frontends/scripts/dns-failover.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/scripts/dns-failover.ksh b/frontends/scripts/dns-failover.ksh index dfc24ee..57f2aee 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 )) -ne 0 ]; then + if [ $(( week_of_the_year % 2 )) -eq 0 ]; then local tmp=$master master=$standby standby=$tmp |
