Univention Bugzilla – Bug 48014
Cronmail /usr/sbin/univention-ldap-backup if UCR backup/clean/max_age is set
Last modified: 2019-01-16 13:25:21 CET
When UCR backup/clean/max_age is set, the cronjob /etc/cron.d/univention-ldap-server will send a mail every time it is executed (default: 0 0 * * *). There is an 'echo' in univention-lib/shell/backup.sh which is the cause, leftover debugging? if [ -n "$max_age" ]; then echo "find '$backup_dir' -type f -mtime '+$max_age' -regex '$pattern'"
Please delete this echo-line asap. Each of my systems additionally mails every night. Since the package univention-lib is updated regularly, my local adjustments (= commenting out the line) are overwritten again and again. My userpain with this is much higher than 0.091… problem can also be seen here: https://help.univention.com/t/10080 tia /thorsten
Please add Ticket#2018041221000291 to the "Ticket Number" field.
(In reply to Erik Damrose from comment #0) > When UCR backup/clean/max_age is set, the cronjob > /etc/cron.d/univention-ldap-server will send a mail every time it is > executed (default: 0 0 * * *). > > There is an 'echo' in univention-lib/shell/backup.sh which is the cause, > leftover debugging? > > if [ -n "$max_age" ]; then > echo "find '$backup_dir' -type f -mtime '+$max_age' -regex '$pattern'" The deletion of one echo-line in the package cannot be that big deal...
Successful build Package: univention-lib Version: 7.0.0-20A~4.3.0.201901101611 Branch: ucs_4.3-0 Scope: errata4.3-3 06a26823f0 Bug #48014: Advisory 283df4d74c Bug #48014: Version bump c15285a215 Bug #48014: Removed unnecessary echo line Version: 8.0.0-2A~4.4.0.201901111126 Branch: ucs_4.4-0 89fb8a27bd Bug #48014: Version bump 744834ddce Bug #48014: Removed unnecessary echo line
What I tested: No more emails from cron in /var/mail/systemmail -> OK 4.4 merge -> OK YAML change: [4.3-3 3e60510132] Bug #48014: YAML -> Verified
<http://errata.software-univention.de/ucs/4.3/401.html>