diff --git a/manifests/tal_cli.pp b/manifests/tal_cli.pp index d8bec904a7e43fc255d4204cb0862292b2991250..656078fe4816cc574faea11b82be6dedd5c4741e 100644 --- a/manifests/tal_cli.pp +++ b/manifests/tal_cli.pp @@ -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 + } }