Bug 17717: Make cronjobs using koha-foreach use --chdir
In order to patch production sites we need to adjust the shipped cronjobs so they are called with the --chdir option switch. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
f312f83dbc
commit
6db09ad3b0
4 changed files with 15 additions and 15 deletions
2
debian/koha-common.cron.d
vendored
2
debian/koha-common.cron.d
vendored
|
@ -9,4 +9,4 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|||
# Uncomment the following line if you do not want to use the koha-index-daemon integration
|
||||
# */5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled)
|
||||
|
||||
*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
|
||||
*/15 * * * * root koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
|
||||
|
|
24
debian/koha-common.cron.daily
vendored
24
debian/koha-common.cron.daily
vendored
|
@ -15,16 +15,16 @@
|
|||
# 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/automatic_renewals.pl
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/fines.pl
|
||||
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t
|
||||
koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads
|
||||
koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/fines.pl
|
||||
koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t
|
||||
koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads
|
||||
koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b
|
||||
koha-run-backups --days 2 --output /var/spool/koha
|
||||
|
|
2
debian/koha-common.cron.hourly
vendored
2
debian/koha-common.cron.hourly
vendored
|
@ -16,4 +16,4 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/build_holds_queue.pl
|
||||
|
|
2
debian/koha-common.cron.monthly
vendored
2
debian/koha-common.cron.monthly
vendored
|
@ -16,4 +16,4 @@
|
|||
# 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
|
||||
koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/share_usage_with_koha_community.pl
|
||||
|
|
Loading…
Reference in a new issue