diff options
| author | Paul Buetow <paul@buetow.org> | 2023-07-09 21:22:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-07-09 21:22:13 +0300 |
| commit | acf1c93b7fab3fb5cd5383adf8771b098ae2c734 (patch) | |
| tree | 5215b4f8d600bdd090b7fda495ed04f8a45a9ff0 | |
| parent | c08fb369ac86b1d4ba34a3b554f7b5240d82dff8 (diff) | |
add warrior
| -rw-r--r-- | frontends/Rexfile | 14 | ||||
| -rw-r--r-- | frontends/scripts/taskwarrior.sh.tpl | 7 |
2 files changed, 21 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index a298566..1367044 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -157,6 +157,19 @@ 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', + sub { + file '/usr/local/bin/warrior.sh', + content => template('./scripts/warrior.sh.tpl', + is_primary => $is_primary), + owner => 'root', + group => 'wheel', + mode => '744'; + + append_if_no_such_line '/etc/daily.local', '/usr/local/bin/warrior.sh'; + }; + desc 'Configure ACME client'; task 'acme', group => 'frontends', sub { @@ -512,6 +525,7 @@ task 'commons', group => 'frontends', uptimed(); httpd(); gemtexter(); + warrior(); acme(); acme_invoke(); inetd(); diff --git a/frontends/scripts/taskwarrior.sh.tpl b/frontends/scripts/taskwarrior.sh.tpl new file mode 100644 index 0000000..f02cbc3 --- /dev/null +++ b/frontends/scripts/taskwarrior.sh.tpl @@ -0,0 +1,7 @@ +PATH=$PATH:/usr/local/bin + +find /home -maxdepth 2 -mindepth 2 -type f -name .task.status \ + | while read file; do + echo $file: + cat $file +done |
