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
13ca4f20
Commit
13ca4f20
authored
Apr 26, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repo addkey: add Alpine support
parent
95234ce2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
epm-repo-addkey
bin/epm-repo-addkey
+27
-0
No files found.
bin/epm-repo-addkey
View file @
13ca4f20
...
...
@@ -20,6 +20,15 @@
load_helper epm-sh-altlinux
# allowed files too
__epm_get_file_from_url
()
{
local
tmpfile
=
$(
mktemp
)
remove_on_exit
$tmpfile
eget
-O
$tmpfile
$url
>
/dev/null
echo
"
$tmpfile
"
}
__epm_addkey_altlinux
()
{
local
url
=
"
$1
"
...
...
@@ -40,6 +49,20 @@ EOF
eget
-q
-O
/tmp/
$name
.gpg
$url
||
fatal
sudorun gpg
--no-default-keyring
--keyring
/usr/lib/alt-gpgkeys/pubring.gpg
--import
/tmp/
$name
.gpg
rm
-f
/tmp/
$name
.gpg
__epm_addkey_alpine
()
{
local
url
=
"
$1
"
local
name
=
"
$(
basename
$url
.rsa
)
"
local
target
=
"/etc/apk/keys/
$name
.rsa"
[
-s
$target
]
&&
return
local
tmpfile
=
$(
__epm_get_file_from_url
$url
)
||
fatal
sudocmd
cp
$tmpfile
$target
}
}
...
...
@@ -77,6 +100,10 @@ case $BASEDISTRNAME in
__epm_addkey_altlinux
"
$@
"
return
;;
"alpine"
)
__epm_addkey_alpine
"
$@
"
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