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
1760703b
Commit
1760703b
authored
Mar 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm ei: drop update_url_if_need_mirrored using, we hope eget will helps here
parent
fd5e36f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
33 deletions
+3
-33
epm-epm_install
bin/epm-epm_install
+3
-33
No files found.
bin/epm-epm_install
View file @
1760703b
#!/bin/sh
# Copyright (C) 2016, 2020 Etersoft
# Copyright (C) 2016, 2020
, 2023
Etersoft
# Copyright (C) 2016 Danil Mikhailov <danil@etersoft.ru>
# Copyright (C) 2016, 2020 Vitaly Lipatov <lav@etersoft.ru>
# Copyright (C) 2016, 2020
, 2023
Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
...
...
@@ -20,35 +20,6 @@
load_helper epm-install
# copied from play.d/common.sh
check_url_is_accessible
()
{
local
res
eget
--check
"
$1
"
}
# update URL variable
update_url_if_need_mirrored
()
{
local
MIRROR
=
"
$1
"
local
SECONDURL
check_url_is_accessible
"
$URL
"
&&
return
if
[
-n
"
$MIRROR
"
]
;
then
check_url_is_accessible
"
$MIRROR
"
&&
URL
=
"
$MIRROR
"
return
fi
MIRROR
=
"https://mirror.eterfund.ru"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
MIRROR
=
"https://mirror.eterfund.org"
SECONDURL
=
"
$(
echo
"
$URL
"
|
sed
-e
"s|^.*://|
$MIRROR
/|"
)
"
check_url_is_accessible
"
$SECONDURL
"
&&
URL
=
"
$SECONDURL
"
&&
return
}
__epm_korinf_site_mask
()
{
local
MASK
=
"
$1
"
...
...
@@ -57,8 +28,7 @@ __epm_korinf_site_mask() {
rhas
"
$MASK
"
"[-_]"
||
MASK
=
"
$MASK
[-_][0-9]"
# set arch for Korinf compatibility
[
"
$(
$DISTRVENDOR
-a
)
"
=
"x86_64"
]
&&
archprefix
=
"x86_64/"
URL
=
"http://updates.etersoft.ru/pub/Korinf"
update_url_if_need_mirrored
local
URL
=
"http://updates.etersoft.ru/pub/Korinf"
echo
"
$URL
/
$archprefix
$(
$DISTRVENDOR
-e
)
/
$MASK
*.
$PKGFORMAT
"
}
...
...
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