From 08bede6b5da587c86ee6116e3d6cdd2f66a341b0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 18 Nov 2013 16:55:37 +0100 Subject: [PATCH] Define max_execution_time=3600 instead of using the default (60 sec) --- root/etc/cron.daily/pydio-indexer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cron.daily/pydio-indexer b/root/etc/cron.daily/pydio-indexer index 5e4c8cb..fc24756 100644 --- a/root/etc/cron.daily/pydio-indexer +++ b/root/etc/cron.daily/pydio-indexer @@ -31,7 +31,7 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){ unlink if (time() - $mtime > 18000); } - system('/usr/bin/sudo -u www /usr/bin/php /usr/share/pydio/cmd.php ' . + system('/usr/bin/sudo -u www /usr/bin/php -d max_execution_time=3600 /usr/share/pydio/cmd.php ' . '-u=RDiin175M40T0cYvXLARpAi+1TsSVkbksEDZ4KvwBuY= '. '-t=e71479ebc4365176d9f09fe957780024 -a=index '. '-r='.$name.' --secure_token='.$id.' --dir=/ --_method=put >/dev/null 2>&1');