View | Details | Raw Unified | Return to bug 28962
Collapse All | Expand All

(-)a/debian/koha-common.cron.daily (-1 / +1 lines)
Lines 23-29 koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/advance_noti Link Here
23
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c
23
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c
24
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c
24
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c
25
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1
25
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1
26
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads
26
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads --del-unv-selfreg 14
27
koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --mail
27
koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --confirm --mail
28
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
28
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
29
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b
29
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b
(-)a/misc/cronjobs/cleanup_database.pl (-1 / +1 lines)
Lines 170-176 GetOptions( Link Here
170
    'restrictions:i'    => \$pDebarments,
170
    'restrictions:i'    => \$pDebarments,
171
    'all-restrictions'  => \$allDebarments,
171
    'all-restrictions'  => \$allDebarments,
172
    'del-exp-selfreg'   => \$pExpSelfReg,
172
    'del-exp-selfreg'   => \$pExpSelfReg,
173
    'del-unv-selfreg'   => \$pUnvSelfReg,
173
    'del-unv-selfreg:i' => \$pUnvSelfReg,
174
    'unique-holidays:i' => \$special_holidays_days,
174
    'unique-holidays:i' => \$special_holidays_days,
175
    'temp-uploads'      => \$temp_uploads,
175
    'temp-uploads'      => \$temp_uploads,
176
    'temp-uploads-days:i' => \$temp_uploads_days,
176
    'temp-uploads-days:i' => \$temp_uploads_days,
(-)a/misc/cronjobs/crontab.example (-1 / +1 lines)
Lines 84-90 KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs Link Here
84
*/10 * * * *  __KOHA_USER__  $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
84
*/10 * * * *  __KOHA_USER__  $KOHA_CRON_PATH/../migration_tools/rebuild_zebra.pl -b -a -z >/dev/null
85
85
86
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
86
# clean up databases nightly.  Be sure not to run this with --sessions during a time when the system is in use!
87
16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads
87
16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads --del-unv-selfreg 14
88
88
89
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
89
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
90
@weekly	__KOHA_USER__  $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1
90
@weekly	__KOHA_USER__  $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1
(-)a/t/db_dependent/Members.t (-1 / +3 lines)
Lines 411-416 subtest 'purgeSelfRegistration' => sub { Link Here
411
    foreach(1..3) {
411
    foreach(1..3) {
412
        $dbh->do("INSERT INTO borrower_modifications (timestamp, borrowernumber, verification_token, changed_fields) VALUES ('2014-01-01 01:02:03',0,?,'firstname,surname')", undef, (scalar localtime)."_$_");
412
        $dbh->do("INSERT INTO borrower_modifications (timestamp, borrowernumber, verification_token, changed_fields) VALUES ('2014-01-01 01:02:03',0,?,'firstname,surname')", undef, (scalar localtime)."_$_");
413
    }
413
    }
414
    # Add a record with a borrowernumber which should not be deleted by DeleteUnverifiedOpacRegistrations
415
    # NOTE: We are using the borrowernumber from the last test outside this subtest
416
    $dbh->do( "INSERT INTO borrower_modifications (timestamp, borrowernumber, verification_token, changed_fields) VALUES ('2014-01-01 01:02:03', ?, '', 'firstname,surname' )", undef, $borrowernumber );
414
    is( C4::Members::DeleteUnverifiedOpacRegistrations($d), 3, 'Test for DeleteUnverifiedOpacRegistrations' );
417
    is( C4::Members::DeleteUnverifiedOpacRegistrations($d), 3, 'Test for DeleteUnverifiedOpacRegistrations' );
415
418
416
    #purge members in temporary category
419
    #purge members in temporary category
417
- 

Return to bug 28962