summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/Rexfile7
-rw-r--r--frontends/scripts/habit.pl2
2 files changed, 9 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();
diff --git a/frontends/scripts/habit.pl b/frontends/scripts/habit.pl
index b484aa0..5886f1b 100644
--- a/frontends/scripts/habit.pl
+++ b/frontends/scripts/habit.pl
@@ -8,6 +8,7 @@ use Acme::Cow;
our @habits = (
'Do Push-ups',
+ 'Do single-arm push-ups',
'Do Yoga Wheel',
'Do Yoga Bridge',
'Do Yoga Cro',
@@ -15,6 +16,7 @@ our @habits = (
'Do Yoga Warrior 3',
'Do Yoga Half Moon',
'Do Shoulder stand',
+ 'Do one-legged squads',
'Meditate',
'Listen to music',
'Do nothing',