Bug 6810: [QA Follow-up] Exit cronjob if pref not set
commit507f84f23363746aa9d5912dcb4101e8dad97668
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 18 Sep 2015 11:22:42 +0000 (18 13:22 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 6 Oct 2015 14:13:58 +0000 (6 11:13 -0300)
treee48dbaa482d4e983564a9a24324a932cc2a0e326
parentc69203d0ad7bd0c98c8ff46048c07a1986ef9332
Bug 6810: [QA Follow-up] Exit cronjob if pref not set

As per suggestion of Robin on report 14840, it would be better to always
run the cronjob and only do something when the pref is set.
This patch adds a test in the cronjob and clears the former default of 14
days.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Removed the pref and ran the dbrev again: Fine.
Run the cronjob with -c -v -n: Prints exit warning.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_6810-add_MembershipExpiryDaysNotice_syspref.sql
installer/data/mysql/sysprefs.sql
misc/cronjobs/membership_expiry.pl