Bugzilla – Attachment 42375 Details for
Bug 13585
HEA - activate cronjob by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13585: Add a cronjob which send UsageStats monthly.
Bug-13585-Add-a-cronjob-which-send-UsageStats-mont.patch (text/plain), 3.32 KB, created by
Jonathan Druart
on 2015-09-04 07:37:40 UTC
(
hide
)
Description:
Bug 13585: Add a cronjob which send UsageStats monthly.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-09-04 07:37:40 UTC
Size:
3.32 KB
patch
obsolete
>From 49cb1492d1ab758860c78478bafc87c3dc29c1f4 Mon Sep 17 00:00:00 2001 >From: Julian FIOL <julian.fiol@biblibre.com> >Date: Wed, 15 Jul 2015 16:10:17 +0200 >Subject: [PATCH] Bug 13585: Add a cronjob which send UsageStats monthly. > >This patch introduces entries for monthly running the share_usage_with_koha_community.pl >script to the packages and also the crontab.example file for manual >installs use. > >Edit: I fixed the Copyright line > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > debian/koha-common.cron.monthly | 19 +++++++++++++++++++ > .../prog/en/modules/admin/preferences/admin.pref | 2 +- > misc/cronjobs/crontab.example | 3 +++ > 3 files changed, 23 insertions(+), 1 deletion(-) > create mode 100644 debian/koha-common.cron.monthly > >diff --git a/debian/koha-common.cron.monthly b/debian/koha-common.cron.monthly >new file mode 100644 >index 0000000..03fa1eb >--- /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 <http://www.gnu.org/licenses/>. >+ >+ >+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 4ec683f..6b1d095 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 <a href="http://hea.koha-community.org">Hea Koha community website</a>. >+ - anonymous Koha usage data with the Koha community. You can see the data on the <a href="http://hea.koha-community.org">Hea Koha community website</a>. 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 5ef68cb..2db8467 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 >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13585
:
41024
|
42176
| 42375