summaryrefslogtreecommitdiff
path: root/frontends/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/scripts')
-rw-r--r--frontends/scripts/dns-failover.ksh2
1 files changed, 1 insertions, 1 deletions
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