2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 21:01:09 +00:00

configib: don't rm config file for el9/nmcli

This commit is contained in:
Alex Richert
2024-08-15 11:30:40 -07:00
parent 0a3852e787
commit c89dbe309b

View File

@@ -177,7 +177,7 @@ then
exit
fi
if [ $OS_name != 'ubuntu' ]; then
if [[ $OS_name != 'ubuntu' ]] && [[ ! "$OSVER" =~ ^(rhels9|alma9|rocky9) ]]; then
if [ $OS_name == 'suse' ]
then
dir="/etc/sysconfig/network"
@@ -192,7 +192,7 @@ then
rm -f $dir/ifcfg-$nic 2>&1 1>/dev/null
done
else
elif [ $OS_name == 'ubuntu' ]; then
interfaces="/etc/network/interfaces"
for tmp in `sed -n "/auto ib/=" ${interfaces}`