2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 09:48:31 +00:00

Adjust otherpkgs repo for rhel8/centos8

This fixes the script not completing successfully
This commit is contained in:
Jarrod Johnson
2019-11-18 09:51:34 -05:00
parent e1996bcd13
commit a7a5186a4e

View File

@@ -386,8 +386,32 @@ fi
array_set_element os_path $index $ospkgdir_ok
done
fi # x86_64
elif ( pmatch "$OSVER" "rhels8*" ); then
if [ $ARCH == "x86_64" ]; then
for arg in "BasOS" "AppStream"
do
ospkgdir_ok="$ospkgdir/$arg"
array_set_element os_path $index $ospkgdir_ok
index=$(expr $index + 1)
done
fi # x86_64
fi # if...elif..fi
fi # eq default_pkgdir
elif ( pmatch "$OSVER" "centos*" ); then
#default_pkgdir="$INSTALLDIR/$OSVER/$ARCH"
if [ $dir == $default_pkgdir ] || [ $dir == "$default_pkgdir/" ]; then
if ( pmatch "$OSVER" "centos8*" ); then
if [ $ARCH == "x86_64" ]; then
for arg in "BaseOS" "AppStream"
do
ospkgdir_ok="$ospkgdir/$arg"
array_set_element os_path $index $ospkgdir_ok
index=$(expr $index + 1)
done
fi
fi
fi
fi # match rhel*
index=$(expr $index + 1)