2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

Add isserv to sle15 pkglist

This commit is contained in:
cxhong
2020-01-14 09:49:48 -05:00
parent f6e6389902
commit 5fd937b133
6 changed files with 14 additions and 3 deletions

View File

@@ -2,3 +2,4 @@ iputils
vim
openssl
rsync
insserv

View File

@@ -3,6 +3,7 @@
openssl
ntp
rsync
insserv
nmap
perl-DBI
vsftpd

View File

@@ -46,3 +46,4 @@ kernel-default
kernel-firmware
adaptec-firmware
xz
insserv

View File

@@ -47,3 +47,4 @@ kernel-firmware
adaptec-firmware
xz
SLE_HPC-release
insserv

View File

@@ -57,6 +57,7 @@ vsftpd
wget
which
zypper
insserv
#for database
unixODBC

View File

@@ -848,7 +848,7 @@ sub load_config_file {
}
} elsif ($type eq "Varible") {
##NODE_BLOCK##
if ($line =~ /(\w+)\s*=\s*([\w\.\-\+\/:]+)/) {
if ($line =~ /(\w+)\s*=\s*([\w\.\-\+\ \/:]+)/) {
$$config_ref{var}{$1} = $2;
}
}
@@ -1796,10 +1796,16 @@ sub is_valid_case_name {
sub get_current_os {
if (-f "/etc/redhat-release") {
return "rhels";
} elsif (-f "/etc/SuSE-release") {
return "sles";
} elsif (-f "/etc/lsb-release") {
return "ubuntu";
} elsif (-f "/etc/os-release") {
my $file="/etc/os-release";
&runcmd("grep -q sles $file");
if ($::RUNCMD_RC == 0) {
return "sles";
}
} elsif (-f "/etc/SuSE-release") {
return "sles";
} else {
return "aix";
}