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
a04eb427
Commit
a04eb427
authored
Mar 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm addrepo: add support for AstraLinux
parent
ba89b172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
9 deletions
+52
-9
epm-addrepo
bin/epm-addrepo
+52
-9
No files found.
bin/epm-addrepo
View file @
a04eb427
...
...
@@ -289,6 +289,55 @@ esac
}
__epm_addrepo_astra
()
{
local
repo
=
"
$*
"
if
[
-z
"
$repo
"
]
||
[
"
$repo
"
=
"--help"
]
;
then
info
"Add repo. You can use follow params:"
echo
" distribution component name"
echo
" full sources list line"
echo
" URL version component"
return
fi
local
reponame
=
"
$(
epm print info
--repo-name
)
"
# keywords
# https://wiki.astralinux.ru/pages/viewpage.action?pageId=3276859
case
"
$1
-
$reponame
"
in
astra-1.7_x86_64
)
# TODO epm repo change http / https
epm
install
--skip-installed
apt-transport-https ca-certificates
||
fatal
# https://wiki.astralinux.ru/pages/viewpage.action?pageId=158598882
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-main/ 1.7_x86-64 main contrib non-free"
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-update/ 1.7_x86-64 main contrib non-free"
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-base/ 1.7_x86-64 main contrib non-free"
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free"
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 astra-ce"
return
;;
astra-orel
)
# TODO epm repo change http / https
epm
install
--skip-installed
apt-transport-https ca-certificates
||
fatal
# https://wiki.astralinux.ru/pages/viewpage.action?pageId=158605543
epm repo add
"deb [arch=amd64] https://dl.astralinux.ru/astra/frozen/
$(
epm print info
-v
)
_x86-64/
$(
epm print info
--full-version
)
/repository stable main contrib non-free"
#epm repo add "deb https://download.astralinux.ru/astra/stable/orel/repository/ orel main contrib non-free"
return
;;
astra-
*
)
fatal
"Unsupported distro version
$reponame
, see '# epm print info' output."
;;
esac
echo
"Use workaround for AstraLinux ..."
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
epm repo list
--quiet
|
grep
-q
-F
"
$repo
"
&&
return
0
[
-z
"
$(
tail
-n1
/etc/apt/sources.list
)
"
]
||
echo
""
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"
$repo
"
| sudocmd
tee
-a
/etc/apt/sources.list
return
}
__epm_addrepo_deb
()
{
assure_exists apt-add-repository software-properties-common
...
...
@@ -307,15 +356,6 @@ __epm_addrepo_deb()
return
fi
if
[
"
$DISTRNAME
"
=
"AstraLinuxCE"
]
||
[
"
$DISTRNAME
"
=
"AstraLinuxSE"
]
;
then
echo
"Use workaround for AstraLinux"
# aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for AstraLinuxCE/orel
echo
""
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"
$repo
"
| sudocmd
tee
-a
/etc/apt/sources.list
return
fi
# keywords
case
"
$1
"
in
docker
)
...
...
@@ -355,6 +395,9 @@ case $BASEDISTRNAME in
__epm_addrepo_altlinux
$repo
return
;;
"astra"
)
__epm_addrepo_astra
$repo
return
esac
case
$PMTYPE
in
...
...
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