Create otherpkgdir if it doesn't exist on management node or service node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6d6ab9b951
commit
04e63c307e
@ -480,6 +480,11 @@ sub assign_to_osimage
|
||||
my $otherpkgdir = $linuximagetable->{otherpkgdir};
|
||||
my $kitrepodir = $kitrepotable->{kitrepodir};
|
||||
|
||||
# Create otherpkgdir if it doesn't exist
|
||||
unless ( -d "$otherpkgdir" ) {
|
||||
mkpath("$otherpkgdir");
|
||||
}
|
||||
|
||||
# Create symlink if doesn't exist
|
||||
unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" ) {
|
||||
system("ln -sf $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame} ");
|
||||
|
Loading…
Reference in New Issue
Block a user