| Summary: |
Online helper on different (open-)SUSE versions info. |
| Product: |
[openSUSE] openSUSE.org
|
Reporter: |
Mikhail Kasimov <mikhail.kasimov> |
| Component: |
Software Portal | Assignee: |
Mikhail Kasimov <mikhail.kasimov> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
E-mail List <opensuse-communityscreening> |
| Severity: |
Normal
|
|
|
| Priority: |
P5 - None
|
|
|
| Version: |
unspecified | |
|
| Target Milestone: |
--- | |
|
| Hardware: |
Other | |
|
| OS: |
Other | |
|
| Whiteboard: |
|
|
Found By:
|
---
|
Services Priority:
|
|
|
Business Priority:
|
|
Blocker:
|
---
|
|
Marketing QA Status:
|
---
|
IT Deployment:
|
---
|
Hello! Working on some external software installation scripts (e.g. nginx amplify now) to have compatibility with SuSE distros, I faced with problem to have info of /etc/*-release output simultaneuosly for couple of main (open-)SUSE disros: Leap, Tumbleweed, SLES, SLED, etc. For example, installation script has a snippet for os detection: ============================================= if ! ls /etc/*-release > /dev/null 2>&1; then os=`uname -s | \ tr '[:upper:]' '[:lower:]'` else os=`cat /etc/*-release | grep '^ID=' | \ sed 's/^ID=["]*\([a-zA-Z]*\).*$/\1/' | \ tr '[:upper:]' '[:lower:]'` if [ -z "$os" ]; then if grep -i "oracle linux" /etc/*-release > /dev/null 2>&1 || \ grep -i "red hat" /etc/*-release > /dev/null 2>&1; then os="rhel" else if grep -i "centos" /etc/*-release > /dev/null 2>&1; then os="centos" else os="linux" fi fi fi fi echo $os ============================================= Here ID -field is parsed to get OS name. And here I need to get some unified name, like `SUSE`, which will be applicable for all main SUSE distros. Solution: ==================== To install couple SUSE distros on VMs -- yes, it's a way. But long and inconvenient. Can we have something, like online helper, which will give such information? This is not secret info and can give a great helpful advantage on working for compatibility of external software for SuSE distros. Please, consider! Thanks!