Commit f294f550 authored by André Kerkhoff's avatar André Kerkhoff
Browse files

Add cronjob for tick_foswiki.pl

parent 78d9de78
DEPENDENCIES
foswiki
path: .
metadata: true
GRAPH
apache2 (5.2.1)
foswiki (2.3.0)
apache2 (< 6.0)
......@@ -15,6 +15,7 @@ default['foswiki']['cron']['mailnotify_time'] = nil
default['foswiki']['cron']['mailto'] = 'root'
default['foswiki']['cron']['mailto'] = 'root'
default['foswiki']['cron']['statistics_time'] = '0 0 * * *'
default['foswiki']['cron']['tick_time'] = '0 0 * * 0'
default['foswiki']['cron']['trash_cleanup_time'] = nil
# Attributes set by tools/configure
......
......@@ -3,7 +3,7 @@ maintainer 'HPC'
maintainer_email 'hpc@gsi.de'
license 'All rights reserved'
description 'Installs/Configures Foswiki'
version '2.2.16'
version '2.3.0'
depends 'apache2', '< 6.0'
supports 'debian'
supports 'ubuntu'
......@@ -179,6 +179,7 @@ template '/etc/cron.d/foswiki' do
mailto: node['foswiki']['cron']['mailto'],
script_dir: foswiki_dir('script'),
statistics_time: node['foswiki']['cron']['statistics_time'],
tick_time: node['foswiki']['cron']['tick_time'],
tools_dir: foswiki_dir('tools'),
trash_cleanup_time: node['foswiki']['cron']['trash_cleanup_time'],
user: node['apache']['user']
......
......@@ -13,6 +13,9 @@
<% unless @statistics_time.nil? -%>
<%= @statistics_time %> <%= @user %> cd "<%= @script_dir %>" && ./statistics >/dev/null 2>&1
<% end -%>
<% unless @tick_time.nil? -%>
<%= @tick_time %> <%= @user %> cd "<%= @script_dir %>" && perl ../tools/tick_foswiki.pl
<% end -%>
<% unless @trash_cleanup_time.nil? -%>
<%= @trash_cleanup_time %> <%= @user %> cd "<%= @script_dir %>" && ./rest /TrashPlugin/cleanUp
<% end -%>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment