Never set the status of script recon tasks outside the script.
This commit is contained in:
parent
da83bdc7a6
commit
9b79307668
|
@ -533,8 +533,8 @@ sub exec_recon_script ($$$) {
|
||||||
logger ($pa_config, "Cannot execute recon task command $command.");
|
logger ($pa_config, "Cannot execute recon task command $command.");
|
||||||
}
|
}
|
||||||
|
|
||||||
# Notify this recon task is ended
|
# Only update the timestamp in case something went wrong. The script should set the status.
|
||||||
update_recon_task ($dbh, $task->{'id_rt'}, -1);
|
db_do ($dbh, 'UPDATE trecon_task SET utimestamp = ? WHERE id_rt = ?', time (), $task->{'id_rt'});
|
||||||
|
|
||||||
logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10);
|
logger($pa_config, 'Done executing recon script ' . safe_output($script->{'name'}), 10);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue