2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-22 01:21:44 +00:00

create rh8 rpmbuild dir

This commit is contained in:
cxhong 2020-04-27 15:50:49 -04:00
parent e7172c8f63
commit 4bbb5bd7d3

View File

@ -60,7 +60,7 @@ if ( (! -f "$pwd/ipmitool-$version.tar.gz")
my $blddir;
if ($os eq "rh5") {
$blddir = "/usr/src/redhat";
} elsif (($os eq "rh6") || ($os eq "rh7")) {
} elsif ($os =~ /rh\d/) {
$blddir = "/root/rpmbuild";
} elsif ($os =~ /sles1\d/) {
$blddir = "/usr/src/packages";
@ -119,12 +119,6 @@ if (! -f $objrpm) {
exit 0;
}
sub runcmd () {
my $cmd = shift;
print "++++Trying to run command: [$cmd]\n";