Changeset 1911


Ignore:
Timestamp:
Apr 14, 2008, 1:48:52 PM (12 years ago)
Author:
bruno
Message:

Fix an issue on HW restoration where the dorectory used was incorrect (pointing to the original tree)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mindi/mindi-bkphw

    r1880 r1911  
    1515
    1616die "No CACHE_DIR parameter" if ((not defined $ARGV[0]) || (! -d $ARGV[0]));
    17 my $bkpdir = "$ARGV[0]/bkphw";
     17my $locbkpdir = "/bkphw";
     18my $bkpdir = "$ARGV[0]$locbckdir";
    1819die "No CONF_DIR parameter" if ((not defined $ARGV[1]) || (! -d $ARGV[1]));
    1920my $confdir = "$ARGV[1]";
     
    6364        if ($tool =~ /\/conrep$/) {
    6465            $ret = system("cd $tooldir ; $tool -s -f$bkpdir/conrep.dat");
    65             print SCRIPT "(cd $tooldir ; $tool -l -f$bkpdir/conrep.dat)\n";
     66            print SCRIPT "(cd $tooldir ; $tool -l -f$locbkpdir/conrep.dat)\n";
    6667            print TOOLS "$tool.xml\n";
    6768        }
     
    6970            my $dir=basename($tool);
    7071            $ret = system("export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -c $bkpdir/cpqacuxe.dat");
    71             print SCRIPT "export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -i $bkpdir/cpqacuxe.dat\n";
     72            print SCRIPT "export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -i $locbkpdir/cpqacuxe.dat\n";
    7273            print TOOLS "$tooldir/bld\n";
    7374        }
    7475        if ($tool =~ /\/hponcfg$/) {
    7576            $ret = system("$tool -w $bkpdir/hponcfg.dat");
    76             print SCRIPT "$tool -r $bkpdir/hponcfg.dat\n";
     77            print SCRIPT "$tool -r $locbkpdir/hponcfg.dat\n";
    7778        }
    7879        if ($tool =~ /\.scexe$/) {
    7980            print "Found $tool, that firmware will be applied at restore time on your HP Proliant\n";
    80             print SCRIPT "$tool\n";
     81            print SCRIPT "./$tool\n";
    8182        }
    8283        if ($ret != 0) {
Note: See TracChangeset for help on using the changeset viewer.