diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-09-14 20:45:50 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-14 20:45:50 -0400 |
| commit | 9b715f72c2eb7dec71e0392a2363474f23c1e761 (patch) | |
| tree | cedb5f1c4129a9440f17afd80d837bc97411f888 /doc | |
| parent | e5c398a0f6dfc65d56c2dcdf2e8bbf031579ef38 (diff) | |
| parent | b6eebba9ca80e9d643aa1d9af03899932f9704db (diff) | |
Merge branch 'master' of ssh://propellor.branchable.com
Diffstat (limited to 'doc')
3 files changed, 47 insertions, 0 deletions
diff --git a/doc/forum/cron_email.mdwn b/doc/forum/cron_email.mdwn new file mode 100644 index 00000000..19f1bb4d --- /dev/null +++ b/doc/forum/cron_email.mdwn @@ -0,0 +1,27 @@ +Hello, + +In my institut, I want to manage a few of my computers with propellor (the cluster will come ;) +So I would like to add a MAILTO to cron. + +The best would be to configure exim4 to redirect all root email to my personnal mbox but for now I just want to do it for cron + +So I created a property for this. + +-- redirect all root email to an email +redirectCronEmail :: String -> Property NoInfo +redirectCronEmail email = "/etc/default/cron" `File.containsLine` ("MAILTO=" ++ email) + `requires` Apt.serviceInstalledRunning "cron" + `onChange` Service.restarted "cron" + + +Would you be so kind to add an equivalent into Cron. (PS I do not know if my property is properly written) + +something like + +Cron.mailTO "toto@titi.org" + +or maybe this is not the right way to solve my problem. + +Cheers + +Frederic diff --git a/doc/forum/reconfigure_package/comment_2_840eee135abdf283f788dd7a3615b816._comment b/doc/forum/reconfigure_package/comment_2_840eee135abdf283f788dd7a3615b816._comment new file mode 100644 index 00000000..0bd4e6d6 --- /dev/null +++ b/doc/forum/reconfigure_package/comment_2_840eee135abdf283f788dd7a3615b816._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="picca" + subject="comment 2" + date="2015-09-13T17:36:47Z" + content=""" +you are right I did not test with an empty list... + +and for now I already extract the reconfigure part and created my one property. + +I do not know it is it better to put Nothing or [] to express an empty debconf selection. +"""]] diff --git a/doc/forum/reconfigure_package/comment_3_0d739809f8eeefa1c22f96a7c2d3a522._comment b/doc/forum/reconfigure_package/comment_3_0d739809f8eeefa1c22f96a7c2d3a522._comment new file mode 100644 index 00000000..46aff956 --- /dev/null +++ b/doc/forum/reconfigure_package/comment_3_0d739809f8eeefa1c22f96a7c2d3a522._comment @@ -0,0 +1,9 @@ +[[!comment format=mdwn + username="picca" + subject="comment 3" + date="2015-09-13T18:08:56Z" + content=""" +Yes it works with an empty list :) + +sorry for the noise and thanks +"""]] |
