Index: trunk/ippScripts/scripts/staticsky.pl
===================================================================
--- trunk/ippScripts/scripts/staticsky.pl	(revision 38519)
+++ trunk/ippScripts/scripts/staticsky.pl	(revision 38566)
@@ -334,4 +334,5 @@
     {
         my $command = "$staticskytool -sky_id $sky_id";
+        $command .= " -dbname $dbname" if defined $dbname;
         if ($updatemode) {
             $command .= " -updaterun -set_state full";
@@ -341,5 +342,4 @@
             $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
             $command .= " -hostname $host" if defined $host;
-            $command .= " -dbname $dbname" if defined $dbname;
         }
 
@@ -368,4 +368,5 @@
         
         my $command = "$staticskytool -sky_id $sky_id -fault $exit_code";
+        $command .= " -dbname $dbname" if defined $dbname;
         if ($updatemode) {
             $command .= " -updateresult";
@@ -375,5 +376,4 @@
             $command .= " -hostname $host" if defined $host;
             $command .= " -path_base $outroot" if defined $outroot;
-            $command .= " -dbname $dbname" if defined $dbname;
         }
         run(command => $command, verbose => $verbose);
