mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	fix bug 4528: Three identical otherpkglist files in /etc/apt/source.list.d on service node installed via xCAT
This commit is contained in:
		| @@ -628,10 +628,10 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do | ||||
| 	    fn=`basename $x` | ||||
| 	    path=`dirname $x` | ||||
| 	    whole_path=$OTHERPKGDIR | ||||
|  | ||||
|             if [[ ! $OSVER =~ ^ubuntu|^debian ]]; then | ||||
|                 echo "rhel package path" | ||||
|             if [[ ! $OSVER =~ ^debian ]]; then | ||||
|             #    echo "rhel package path" | ||||
| 	        whole_path=$OTHERPKGDIR/$path | ||||
|                 whole_path=${whole_path%.} | ||||
|             fi | ||||
| 	 | ||||
|             #find out if this path has already handled | ||||
| @@ -689,7 +689,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do | ||||
| 	                fi | ||||
|                         echo "deb $type://$whole_path ./"  > $REPOFILE | ||||
|                     fi | ||||
|                     if [ -n "$OTHERPKGDIR_INTERNET" ];then | ||||
|                     if [ -n "$OTHERPKGDIR_INTERNET" ] && [ $index -eq 0 ] ;then | ||||
|                         OLDIFS=$IFS | ||||
|                         IFS=$',' | ||||
|                         urlarray=($OTHERPKGDIR_INTERNET) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user