Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
aba127ba
Commit
aba127ba
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: fix ROSA support
parent
f3d113a3
master
3.32.0
3.29.0
3.28.5
3.27.0
3.26.10
3.23.0
3.22.3
3.22.2
3.22.1
3.21.8
3.19.4
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
distr_info
bin/distr_info
+10
-3
No files found.
bin/distr_info
View file @
aba127ba
...
...
@@ -97,9 +97,13 @@ case $DISTRIB_ID in
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
hascommand snappy
&&
CMD
=
snappy
;;
Mandriva
|ROSA
)
Mandriva
)
CMD
=
"urpm-rpm"
;;
ROSA
)
CMD
=
"dnf-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"ROSA/2020"
]
&&
CMD
=
"urpm-rpm"
;;
FreeBSD|NetBSD|OpenBSD|Solaris
)
CMD
=
"pkgsrc"
which pkg 2>/dev/null
>
/dev/null
&&
CMD
=
pkgng
...
...
@@ -112,8 +116,8 @@ case $DISTRIB_ID in
;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|Scientific|GosLinux|Amzn|RedOS
)
CMD
=
"dnf-rpm"
hascommand dnf
||
CMD
=
yum-rpm
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"CentOS/7"
]
&&
CMD
=
yum-rpm
hascommand dnf
||
CMD
=
"yum-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"CentOS/7"
]
&&
CMD
=
"yum-rpm"
;;
Slackware
)
CMD
=
"slackpkg"
...
...
@@ -228,6 +232,9 @@ normalize_name()
"RedHatEnterpriseLinuxServer"
)
echo
"RHEL"
;;
"ROSA Enterprise Linux Desktop"
|
"ROSA Enterprise Linux Server"
)
echo
"ROSA"
;;
*
)
#echo "${1// /}"
echo
"
$1
"
|
sed
-e
"s/ //g"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment