summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5291aa)
raw | patch | inline | side by side (parent: b5291aa)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Jan 2008 13:03:19 +0000 (13:03 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Jan 2008 13:03:19 +0000 (13:03 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8519 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history | |
gosa-si/modules/GosaPackages.pm | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 69a5f7ffd9049791a2a1c31fe8e09ab5f077cfdb..54884536a63e2ec4b5c82870f9b74722b463bbfb 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
sub check_cmdline_param () {
my $err_config;
my $err_counter = 0;
- if( not defined( $cfg_file)) {
- #$err_config = "please specify a config file";
- #$err_counter += 1;
- my $cwd = getcwd;
- my $name = "/etc/gosa-si/client.conf";
- $cfg_file = File::Spec->catfile( $cwd, $name );
- print STDERR "no conf file specified\n try to use default: $cfg_file\n";
+ if(not defined($cfg_file)) {
+ $cfg_file = "/etc/gosa-si/client.conf";
+ if(! -r $cfg_file) {
+ $err_config = "please specify a config file";
+ $err_counter += 1;
+ }
}
if( $err_counter > 0 ) {
&usage( "", 1 );
index 94714e384c3181b081a9093ec0523c9b7f5c8249..6872485d552acc43988a159fb0c43ccd2bcbb135 100644 (file)
if ($out_msg =~ /<jobdb_id>(\d*?)<\/jobdb_id>/) {
my $job_id = $1;
- my $sql = "BEGIN TRANSATION; UPDATE '".$main::job_queue_table_name.
+ my $sql = "UPDATE '".$main::job_queue_table_name.
"' SET status='done', result='".$out_msg.
- "' WHERE id='$job_id'; COMMIT;";
+ "' WHERE id='$job_id'";
my $res = $main::job_db->exec_statement($sql);
return;