Fixing bug 3409, added the handle for postscripts, missing in last checkin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16857 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -972,7 +972,7 @@ sub read_kit_config | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     return([%kithash,%kitrepohash,%kitcomphash]); | ||||
|     return(\%kithash,\%kitrepohash,\%kitcomphash,$scripts); | ||||
|  | ||||
| } | ||||
|  | ||||
| @@ -1150,7 +1150,7 @@ sub addkit | ||||
|         } | ||||
|  | ||||
|         # Read kit configuration file | ||||
|         my ($kithash,$kitrepohash,$kitcomphash) = read_kit_config(\@lines); | ||||
|         my ($kithash,$kitrepohash,$kitcomphash, $scripts) = read_kit_config(\@lines); | ||||
|  | ||||
|         # Check if this kit is allowed to add. | ||||
|         if ( &check_kit_config(\%tabs,\$kithash,\$kitrepohash,\$kitcomphash) ) { | ||||
| @@ -1234,6 +1234,7 @@ sub addkit | ||||
|             push@{ $rsp{data} }, "Copying kit scripts from $kitdir/other_files/ to $installdir/postscripts"; | ||||
|             xCAT::MsgUtils->message( "I", \%rsp, $callback ); | ||||
|         } | ||||
|  | ||||
|         my @script = split ',', $scripts; | ||||
|         foreach (@script) { | ||||
|             next unless ($_); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user