2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Correct for SLE15

SLE15 is a more unified distro.  Also fix install=
for SLES15, versus osimage
This commit is contained in:
Jarrod Johnson
2018-07-20 10:53:03 -04:00
parent b600391786
commit 2a6cd52057
2 changed files with 3 additions and 1 deletions

View File

@ -870,6 +870,8 @@ sub mkinstall
$profile = $ent->{profile};
if ($os =~ /sles.*/) {
$plat = "sles";
} elsif ($os =~ /sle.*/) {
$plat = "sle";
} elsif ($os =~ /suse.*/) {
$plat = "suse";
} else {

View File

@ -60,7 +60,7 @@ then
echo "MaxStartups 1024" >>/etc/ssh/sshd_config
if [ "$SETUPFORPCM" = "1" ]; then
if [[ $OSVER == sles* ]];then
if [[ $OSVER == sle* ]];then
sed -i '/PasswordAuthentication /'d /etc/ssh/sshd_config
echo "PasswordAuthentication yes" >>/etc/ssh/sshd_config
elif [[ $OSVER == ubuntu* ]];then