summaryrefslogtreecommitdiff
path: root/frontends/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-07-09 22:13:55 +0300
committerPaul Buetow <paul@buetow.org>2023-07-09 22:13:55 +0300
commitca3dc8f1aec00f862094bd75324149a20b579465 (patch)
tree77cbfb5bcdc190340baa4251f66e7a3a00b2f0d1 /frontends/Rexfile
parent5c0d59f773d686ee7415d145dfcdea46fc0f57a4 (diff)
use full task db
Diffstat (limited to 'frontends/Rexfile')
-rw-r--r--frontends/Rexfile23
1 files changed, 15 insertions, 8 deletions
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();