diff options
| author | Paul Buetow <paul@buetow.org> | 2024-03-20 10:24:06 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-03-20 10:24:24 +0200 |
| commit | acca2fd464640b5047650315d431123d090a863c (patch) | |
| tree | 3ff9648af54a63a39bd176c1af412faf09e9ff96 /frontends/Rexfile | |
| parent | c3c8a774d3a0947880f0416b3e3b1b877a86a7c6 (diff) | |
failover based on week number
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 4 |
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'; |
