summaryrefslogtreecommitdiff
path: root/frontends/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-03-20 10:24:06 +0200
committerPaul Buetow <paul@buetow.org>2024-03-20 10:24:24 +0200
commitacca2fd464640b5047650315d431123d090a863c (patch)
tree3ff9648af54a63a39bd176c1af412faf09e9ff96 /frontends/Rexfile
parentc3c8a774d3a0947880f0416b3e3b1b877a86a7c6 (diff)
failover based on week number
Diffstat (limited to 'frontends/Rexfile')
-rw-r--r--frontends/Rexfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile
index 4456755..087c2f3 100644
--- a/frontends/Rexfile
+++ b/frontends/Rexfile
@@ -341,11 +341,13 @@ task 'nsd', group => 'frontends',
desc 'Setup DNS failover script(s)';
task 'nsd_failover', group => 'frontends',
sub {
- file '/usr/local/bin/dns-failover.sh',
+ file '/usr/local/bin/dns-failover.ksh',
source => './scripts/dns-failover.ksh',
owner => 'root',
group => 'wheel',
mode => '500';
+
+ append_if_no_such_line '/etc/rc.local', '/usr/local/bin/dns-failover.ksh';
};
desc 'Setup DTail';