From ca3dc8f1aec00f862094bd75324149a20b579465 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 9 Jul 2023 22:13:55 +0300 Subject: use full task db --- frontends/Rexfile | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'frontends/Rexfile') diff --git a/frontends/Rexfile b/frontends/Rexfile index 1367044..6a15887 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -157,17 +157,24 @@ task 'gemtexter', group => 'frontends', append_if_no_such_line '/etc/daily.local', '/usr/local/bin/gemtexter.sh'; }; -desc 'Configure task warrior reminder'; -task 'warrior', group => 'frontends', +desc 'Configure taskwarrior reminder'; +task 'taskwarrior', group => 'frontends', sub { - file '/usr/local/bin/warrior.sh', - content => template('./scripts/warrior.sh.tpl', - is_primary => $is_primary), + pkg 'taskwarrior', ensure => present; + + file '/usr/local/bin/taskwarrior.sh', + content => template('./scripts/taskwarrior.sh.tpl'), owner => 'root', group => 'wheel', - mode => '744'; + mode => '500'; + + file '/etc/taskrc', + content => template('./etc/taskrc.tpl'), + owner => 'root', + group => 'wheel', + mode => '600'; - append_if_no_such_line '/etc/daily.local', '/usr/local/bin/warrior.sh'; + append_if_no_such_line '/etc/daily.local', '/usr/local/bin/taskwarrior.sh'; }; desc 'Configure ACME client'; @@ -525,7 +532,7 @@ task 'commons', group => 'frontends', uptimed(); httpd(); gemtexter(); - warrior(); + taskwarrior(); acme(); acme_invoke(); inetd(); -- cgit v1.2.3