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
41c074f0
Commit
41c074f0
authored
Oct 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit packed
parent
ad3a0814
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
9 deletions
+50
-9
epm.sh
packed/epm.sh
+0
-0
serv.sh
packed/serv.sh
+50
-9
No files found.
packed/epm.sh
View file @
41c074f0
This diff is collapsed.
Click to expand it.
packed/serv.sh
View file @
41c074f0
...
...
@@ -592,6 +592,20 @@ assure_distr()
[
"
$DISTRNAME
"
=
"
$1
"
]
||
fatal
"
$TEXT
supported only for
$1
distro"
}
get_pkg_name_delimiter
()
{
local
pkgtype
=
"
$1
"
[
-n
"
$pkgtype
"
]
||
pkgtype
=
"
$(
$DISTRVENDOR
-p
)
"
[
"
$pkgtype
"
=
"deb"
]
&&
echo
"_"
&&
return
echo
"-"
}
has_space
()
{
estrlist has_space
"
$@
"
}
# File bin/serv-cat:
serv_cat
()
...
...
@@ -1589,6 +1603,18 @@ esac
echo
"
$DIST_ARCH
"
}
get_debian_arch
()
{
local arch
=
"
$(
get_arch
)
"
case
$arch
in
'i586'
)
arch
=
'i386'
;;
'x86_64'
)
arch
=
'amd64'
;;
esac
echo
"
$arch
"
}
get_distro_arch
()
{
local arch
=
"
$(
get_arch
)
"
...
...
@@ -1597,12 +1623,8 @@ get_distro_arch()
:
;;
deb
)
case
$arch
in
'i586'
)
arch
=
'i386'
;;
'x86_64'
)
arch
=
'amd64'
;;
esac
get_debian_arch
return
;;
esac
echo
"
$arch
"
...
...
@@ -1800,6 +1822,12 @@ case $1 in
get_distro_arch
exit
0
;;
--debian-arch
)
# override DISTRIB_ID
test
-n
"
$2
"
&&
DISTRIB_ID
=
"
$2
"
get_debian_arch
exit
0
;;
-d
)
echo
$DISTRIB_ID
;;
...
...
@@ -2079,11 +2107,23 @@ strip_spaces()
echo
"
$*
"
| filter_strip_spaces
}
isempty
()
is
_
empty
()
{
[
"
$(
strip_spaces
"
$*
"
)
"
=
""
]
}
isempty
()
{
is_empty
"
$@
"
}
has_space
()
{
# not for dash:
# [ "$1" != "${1/ //}" ]
[
"
$(
echo
"
$*
"
|
sed
-e
"s| ||"
)
"
!=
"
$*
"
]
}
list
()
{
local
i
...
...
@@ -2266,7 +2306,8 @@ help()
# echo " reg_wordexclude <list PATTERN> [word list] - print only words do not match PATTERN"
echo
" has <PATTERN> string - check the string for a match to the regular expression given in PATTERN (grep notation)"
echo
" match <PATTERN> string - check the string for a match to the regular expression given in PATTERN (egrep notation)"
echo
" isempty [string] - true if string has no any symbols (only zero or more spaces)"
echo
" isempty [string] (is_empty) - true if string has no any symbols (only zero or more spaces)"
echo
" has_space [string] - true if string has no spaces"
echo
" union [word list] - sort and remove duplicates"
echo
" intersection <list1> <list2> - print only intersected items (the same in both lists)"
echo
" difference <list1> <list2> - symmetric difference between lists items (not in both lists)"
...
...
@@ -2642,7 +2683,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.
5.0
https://wiki.etersoft.ru/Epm"
echo
"Service manager version 3.
6.1
https://wiki.etersoft.ru/Epm"
echo
"Running on
$(
$DISTRVENDOR
-e
)
$on_text
with
$SERVICETYPE
"
echo
"Copyright (c) Etersoft 2012-2019"
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