summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ed542c)
raw | patch | inline | side by side (parent: 7ed542c)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Nov 2008 09:19:27 +0000 (09:19 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Nov 2008 09:19:27 +0000 (09:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13001 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 3424cd828a03a8bdf14a5437d832ecffc58b8d70..fcb6da378d1d7de4cbc597759d36981e80351376 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
||($job_header eq "trigger_action_halt")
) {
my $sql_statement = "UPDATE $job_queue_tn SET status='done' WHERE id=$jobdb_id";
- &daemon_log("$session_id DEBUG: $sql_statement", 7);
+ &daemon_log("$session_id DEBUG: $sql_statement", 7);
my $res = $job_db->update_dbentry($sql_statement);
# reactivate jobs, jobs need to deliver their message
} elsif (($job_header eq "trigger_action_activate")
||($job_header eq "trigger_action_update")
||($job_header eq "trigger_action_reinstall")
- ||($job_header eq "trigger_activate_new")
+ ||($job_header eq "trigger_activate_new")
) {
&reactivate_job_with_delay($session_id, $job_target, $job_header, 30 );
||($job_header eq "trigger_action_halt")
||($job_header eq "trigger_action_reboot")
||($job_header eq "trigger_action_wake")
- ||($job_header eq "trigger_wake")
+ ||($job_header eq "trigger_wake")
) {
my $sql_statement = "UPDATE $job_queue_tn ".
if(defined($res_2) and defined @{$res_2}[0]) {
# Set status from goto-activation to 'waiting' and update timestamp
$job_db->exec_statement("UPDATE $job_queue_tn SET status='waiting' WHERE macaddress LIKE '$macaddress' AND headertag = 'trigger_action_reinstall'");
- $job_db->exec_statement("UPDATE $job_queue_tn SET timestamp='".&get_time(30)."' WHERE macaddress LIKE '$macaddress' AND headertag = 'trigger_action_reinstall'");
+ $job_db->exec_statement("UPDATE $job_queue_tn SET timestamp='".&calc_timestamp(&get_time(), 'plus', 30)."' WHERE macaddress LIKE '$macaddress' AND headertag = 'trigger_action_reinstall'");
}
}
next;