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:
@ -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 {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user