Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SLES Expanded Support platform #1150

Closed
radraw opened this issue Dec 9, 2020 · 1 comment
Closed

Add support for SLES Expanded Support platform #1150

radraw opened this issue Dec 9, 2020 · 1 comment

Comments

@radraw
Copy link

radraw commented Dec 9, 2020

The command:

rpm -q --whatprovides redhat-release

shows:

sles_es-release-server-7.8-2.el7.x86_64

and a fix, that worked for me :

--- setup_nodejs_old.sh	2020-12-09 14:08:44.607710723 +0100
+++ setup_nodejs.sh	2020-12-09 12:29:35.130325167 +0100
@@ -202,7 +202,7 @@
 
 fi
 
-if [[ $DISTRO_PKG =~ ^(redhat|centos|cloudlinux|sl)- ]]; then
+if [[ $DISTRO_PKG =~ ^(redhat|centos|cloudlinux|sl|sles_es)- ]]; then
     DIST_TYPE=el
 elif [[ $DISTRO_PKG =~ ^(enterprise|system)-release- ]]; then # Oracle Linux & Amazon Linux
     DIST_TYPE=el
@@ -230,7 +230,8 @@
 
   ## Using the redhat-release-server-X, centos-release-X, centos-stream-release-X, etc. pattern
   ## extract the major version number of the distro
-  DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
+  DIST_VERSION=$(echo $DISTRO_PKG | sed -r 's/^[[:alpha:]_]+(-stream|-linux)?-release(-server|-workstation|-client|-common)?-([0-9]+).*$/\3/')
+  echo DIST_VERSION: $DIST_VERSION
 
   if ! [[ $DIST_VERSION =~ ^[0-9][0-9]?$ ]]; then
 

@JesusPaz
Copy link
Contributor

Unfortunately, we do not plan to support SLES Expanded Support at this time.

When your distribution is not supported you can install the packages manually by following our README.

You can also help us to support this distribution, here are some examples of pull request #1231 #1195. If you have any problems let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants