Commit 6a273ff6 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Added config file detection

parent 7018f9eb
......@@ -181,8 +181,9 @@ function test_cron_start($text) {
function test_cron_run($stamp) {
global $cronscript;
$config_file = get_cfg_var('cfg_file_path');
exec("php $cronscript " . escapeshellarg($stamp));
exec("php -c $config_file $cronscript " . escapeshellarg($stamp));
}
function test_cron_finish() {
......
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