Commit fba71e3c authored by Brett Wilkins's avatar Brett Wilkins Committed by Richard Mansfield
Browse files

lib/cron: Checking if dataroot is writeable

Bug #646397
parent 5043e87c
...@@ -70,6 +70,10 @@ else { ...@@ -70,6 +70,10 @@ else {
log_debug('---------- cron running ' . date('r', $now) . ' ----------'); log_debug('---------- cron running ' . date('r', $now) . ' ----------');
raise_memory_limit('128M'); raise_memory_limit('128M');
if (!is_writable(get_config('dataroot'))) {
log_debug("Warning - unable to write to dataroot directory.");
}
// for each plugin type // for each plugin type
foreach (plugin_types() as $plugintype) { foreach (plugin_types() as $plugintype) {
......
Markdown is supported
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