Skip to content
Snippets Groups Projects
Commit 814567b9 authored by Klas Arvidsson's avatar Klas Arvidsson
Browse files

schedule tal-reminders daily

parent 98299164
No related branches found
No related tags found
2 merge requests!30Merge branch 'cherry-pick-b940cfc1' into 'test',!29Devel
Pipeline #91261 failed
......@@ -47,4 +47,25 @@ class aes::tal_cli (
group => examadm,
cwd => '/home/examadm/tal-cli',
}
file { '/etc/cron.daily/tal-remind' :
ensure => file,
owner => 'root',
group => 'root',
mode => '0700',
content => @(END),
#!/bin/bash
if [ "$(hostname)" = "aes-devel.edu.liu.se" ]
then
TO="klas.arvidsson@liu.se"
else
TO="inrapportering@ida.liu.se"
fi
if [ -e /home/examadm/ENABLE_TAL_REMINDERS ]
then
sudo -u examadm /home/examadm/tal-cli/scripts/tal-remind.py --to ${TO}
sudo -u examadm /home/examadm/tal-cli/scripts/tal-remind.py --to ${TO} --computer-exam
fi
| END
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment