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
cbb1277e
Commit
cbb1277e
authored
Jul 14, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: add ROSA/7 with yum support
parent
1eb30965
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
distr_info
bin/distr_info
+5
-2
No files found.
bin/distr_info
View file @
cbb1277e
...
...
@@ -6,7 +6,7 @@
# You can set ROOTDIR to root system dir
#ROOTDIR=
PROGVERSION
=
"20220
32
3"
PROGVERSION
=
"20220
71
3"
# TODO: check /etc/system-release
...
...
@@ -102,6 +102,8 @@ case $DISTRIB_ID in
;;
ROSA
)
CMD
=
"dnf-rpm"
hascommand dnf
||
CMD
=
"yum-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"ROSA/7"
]
&&
CMD
=
"yum-rpm"
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"ROSA/2020"
]
&&
CMD
=
"urpm-rpm"
;;
FreeBSD|NetBSD|OpenBSD|Solaris
)
...
...
@@ -160,10 +162,11 @@ case $DISTRIB_ID in
*
)
# try detect firstly
if
hascommand
"rpm"
;
then
hascommand
"urpmi"
&&
echo
"urpmi-rpm"
&&
return
hascommand
"zypper"
&&
echo
"zypper-rpm"
&&
return
hascommand
"apt-get"
&&
echo
"apt-rpm"
&&
return
hascommand
"dnf"
&&
echo
"dnf-rpm"
&&
return
hascommand
"yum"
&&
echo
"yum-rpm"
&&
return
hascommand
"urpmi"
&&
echo
"urpmi-rpm"
&&
return
fi
if
hascommand
"dpkg"
;
then
hascommand
"apt"
&&
echo
"apt-dpkg"
&&
return
...
...
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