]> andersk Git - moira.git/blobdiff - gen/confluence.gen
Remove stellar DCM and add confluence DCM, which is mostly the stellar
[moira.git] / gen / confluence.gen
similarity index 89%
rename from gen/stellar.gen
rename to gen/confluence.gen
index 072def8be26d994e6dfdf687d44e69183486dad8..b39011a4114b38165520d67505992f382157afbc 100755 (executable)
@@ -5,12 +5,10 @@
 # The following exit codes are defined and MUST BE CONSISTENT with the
 # error codes the library uses:
 $MR_DBMS_ERR = 47836421;
-$MR_OCONFIG = 47836460;
 
 $ENV{PATH} = "/bin:/usr/bin:/sbin:/usr/sbin";
 
-$outdir = '/moira/dcm/stellar';
-$outfile = '/moira/dcm/stellar.out';
+$outdir = '/moira/dcm/confluence';
 umask 022;
 
 use DBI;
@@ -20,7 +18,7 @@ $dbh = DBI->connect("dbi:Oracle:moira", "moira", "moira")
 
 $sth0 = $dbh->prepare("SELECT l.list_id, m.name " .
                      "FROM list l, machine m, serverhosts sh " .
-                     "WHERE sh.value3 = l.name AND sh.service = 'STELLAR' " .
+                     "WHERE sh.value3 = l.name AND sh.service = 'CONFLUENCE' " .
                      "AND m.mach_id = sh.mach_id") || exit $MR_DBMS_ERR;
 $sth0->execute;
 
@@ -77,8 +75,6 @@ while (($root_list_id, $hostname) = $sth0->fetchrow_array) {
     close(OUT);
 }
 
-system("cd $outdir && tar cf $outfile .") == 0 || exit $MR_OCONFIG;
-
 $dbh->disconnect;
 
 exit 0;
This page took 0.033298 seconds and 4 git commands to generate.