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
etersoft
eepm
Commits
4a0a2327
Commit
4a0a2327
authored
Jan 25, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed 3.29.0
parent
0ac9630a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+11
-5
No files found.
packed/epm.sh
View file @
4a0a2327
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
4a0a2327
...
...
@@ -1432,7 +1432,7 @@ case $DISTRIB_ID in
PCLinux
)
CMD
=
"apt-rpm"
;;
Ubuntu|Debian|Mint|AstraLinux
*
|
Elbrus
)
Ubuntu|Debian|Mint|
OSNovaLinux|
AstraLinux
*
|
Elbrus
)
CMD
=
"apt-dpkg"
#which aptitude 2>/dev/null >/dev/null && CMD=aptitude-dpkg
#hascommand snappy && CMD=snappy
...
...
@@ -1500,17 +1500,23 @@ case $DISTRIB_ID in
;;
*
)
# try detect firstly
if
hascommand
"rpm"
;
then
if
grep
-q
"ID_LIKE=debian"
/etc/os-release 2>/dev/null
;
then
echo
"apt-dpkg"
&&
return
fi
if
hascommand
"rpm"
&&
[
-s
/var/lib/rpm/Name
]
;
then
hascommand
"zypper"
&&
echo
"zypper-rpm"
&&
return
hascommand
"apt-get"
&&
echo
"apt-rpm"
&&
return
hascommand
"dnf"
&&
echo
"dnf-rpm"
&&
return
hascommand
"apt-get"
&&
echo
"apt-rpm"
&&
return
hascommand
"yum"
&&
echo
"yum-rpm"
&&
return
hascommand
"urpmi"
&&
echo
"urpmi-rpm"
&&
return
fi
if
hascommand
"dpkg"
;
then
if
hascommand
"dpkg"
&&
[
-s
/var/lib/dpkg/status
]
;
then
hascommand
"apt"
&&
echo
"apt-dpkg"
&&
return
hascommand
"apt-get"
&&
echo
"apt-dpkg"
&&
return
fi
echo
"We don't support yet DISTRIB_ID
$DISTRIB_ID
"
>
&2
;;
esac
...
...
@@ -2355,7 +2361,7 @@ print_version()
local
on_text
=
"(host system)"
local
virt
=
"
$(
$DISTRVENDOR
-i
)
"
[
"
$virt
"
=
"(unknown)"
]
||
[
"
$virt
"
=
"(host system)"
]
||
on_text
=
"(under
$virt
)"
echo
"Service manager version 3.2
8.7
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.2
9.0
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2021"
echo
"This program may be freely redistributed under the terms of the GNU AGPLv3."
...
...
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