From: rettenbe Date: Mon, 17 Mar 2008 09:58:08 +0000 (+0000) Subject: set status 'goto-activation' in job queue for installing hosts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e0cb4d3a204125d0df99c8b1e1cdc961a7acfa1;p=gosa.git set status 'goto-activation' in job queue for installing hosts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9892 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/clMessages.pm b/gosa-si/server/events/clMessages.pm index fdb5a6388..2a23f3559 100644 --- a/gosa-si/server/events/clMessages.pm +++ b/gosa-si/server/events/clMessages.pm @@ -14,6 +14,7 @@ my @events = ( "LOGOUT", "CURRENTLY_LOGGED_IN", "save_fai_log", + "goto-activation-start", ); @EXPORT = @events; @@ -73,6 +74,25 @@ sub read_configfile { } +##################### +## under construction +#sub goto-activation-start { +# my ($msg, $msg_hash, $session_id) = @_; +# my $header = @{$msg_hash->{'header'}}[0]; +# my $macaddress = @{$msg_hash->{'macaddress'}}[0]; +# +# my $sql_statement = "UPDATE $main::job_queue_tn ". +# "SET status='processing', progress='goto-activation'". +# "WHERE status='processing' AND macaddress LIKE '$macaddress'"; +# &main::daemon_log("$session_id DEBUG: $sql_statement", 7); +# my $res = $main::job_db->update_dbentry($sql_statement); +# &main::daemon_log("$session_id INFO: '$header' at '$macaddress'", 5); +# +#} +## under construction +##################### + + sub save_fai_log { my ($msg, $msg_hash, $session_id) = @_; my $header = @{$msg_hash->{'header'}}[0];