mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Never set the status of script recon tasks outside the script.
(cherry picked from commit 9b79307668d51021eeed17f78ae728b1f8518abf)
This commit is contained in:
parent
5577d21e49
commit
9c291fe82b
@ -517,8 +517,8 @@ sub exec_recon_script ($$$) {
|
||||
logger ($pa_config, "Cannot execute recon task command $command.");
|
||||
}
|
||||
|
||||
# Notify this recon task is ended
|
||||
update_recon_task ($dbh, $task->{'id_rt'}, -1);
|
||||
# Only update the timestamp in case something went wrong. The script should set the status.
|
||||
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);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user