diff --git a/debian/koha-common.cron.monthly b/debian/koha-common.cron.monthly new file mode 100644 index 0000000000..03fa1eb7a8 --- /dev/null +++ b/debian/koha-common.cron.monthly @@ -0,0 +1,19 @@ +#!/bin/sh +# /etc/cron.monthly/koha-common -- Monthly housekeeping tasks for all Kohas. +# Copyright 2015 Biblibre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +koha-foreach --enabled /usr/share/koha/bin/cronjobs/share_usage_with_koha_community.pl diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref index 4ec683f680..6b1d095050 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -129,7 +129,7 @@ Administration: choices: yes: Share no: "Don't share" - - anonymous Koha usage data with the Koha community. You can see the data on the Hea Koha community website. + - anonymous Koha usage data with the Koha community. You can see the data on the Hea Koha community website. You have to run misc/cronjobs/share_usage_with_koha_community.pl in a cronjob. - - The library name - pref: UsageStatsLibraryName diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 5ef68cba6b..2db84677fd 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -88,3 +88,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # every day at 3AM renew all issues scheduled for automatic renewal 0 3 * * * __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl + +# share_usage_with_koha_community.pl every months +0 0 1 * * __KOHA_USER__ $KOHA_CRON_PATH/share_usage_with_koha_community.pl