Bug 39250: Add archive_purchase_suggestions.pl to cron.daily commented
It will be a commented line in the debian template and added also in the crontab.example file. As mentioned on BZ, the comment can easily be removed automatically during Docker builds or startups etc. Test plan: Just read the patch. Nothing changes here actually. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
8bf9368d75
commit
2d93ec69bd
2 changed files with 4 additions and 0 deletions
1
debian/koha-common.cron.daily
vendored
1
debian/koha-common.cron.daily
vendored
|
@ -16,6 +16,7 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
koha-run-backups --days 2 --output /var/spool/koha
|
||||
#koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/archive_purchase_suggestions.pl -c --age=years:1
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -c
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_checkin.pl
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/recalls/expire_recalls.pl
|
||||
|
|
|
@ -88,6 +88,9 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
|
|||
# clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use!
|
||||
16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads --del-unv-selfreg 14
|
||||
|
||||
# archive older purchase suggestions. Replace XX to define age in years (or change to days or months)
|
||||
@daily __KOHA_USER__ $KOHA_CRON_PATH/archive_purchase_suggestions.pl -c --age=years:XX
|
||||
|
||||
# delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete.
|
||||
@weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1
|
||||
|
||||
|
|
Loading…
Reference in a new issue