diff options
| author | Paul Buetow <paul@buetow.org> | 2023-05-14 22:27:12 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-05-14 22:27:12 +0300 |
| commit | 4b671ce7509cd476a840a582a2481d55285bd9e6 (patch) | |
| tree | ecd316b5c7b9436957dedee8f7d18580874a0884 /frontends/Rexfile | |
| parent | e2347c8b2d33f3e6f08133c00d08df9ceffc024f (diff) | |
more habits
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 967d031..edd6658 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -228,7 +228,11 @@ task 'inetd', group => 'frontends', on_change => sub { service 'inetd' => 'restart' }; service 'inetd', ensure => 'started'; + }; +desc 'Setup habit'; +task 'habit', group => 'frontends', + sub { pkg 'cowsay', ensure => present; run 'adduser -class inetd -group _habit -batch _habit', unless => 'id _habit'; @@ -237,6 +241,8 @@ task 'inetd', group => 'frontends', owner => 'root', group => 'wheel', mode => '755'; + + append_if_no_such_line '/etc/daily.local', '/usr/bin/telnet localhost 1234 | /usr/bin/mail -s Habit paul'; }; desc 'Setup relayd'; @@ -473,6 +479,7 @@ task 'commons', group => 'frontends', acme(); acme_invoke(); inetd(); + habit(); relayd(); smtpd(); rsync(); |
