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
Vladislav
eepm
Commits
9fa9fe04
Commit
9fa9fe04
authored
Oct 19, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-addrepo: initial implementation of addkey for deb
parent
5208add2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
epm-addrepo
bin/epm-addrepo
+15
-1
No files found.
bin/epm-addrepo
View file @
9fa9fe04
...
...
@@ -131,6 +131,20 @@ __epm_addrepo_altlinux()
}
# TODO: add repo addkey command
__epm_addkey_deb
()
{
local
url
=
"
$1
"
local
fingerprint
=
"
$2
"
if
[
-z
"
$fingerprint
"
]
;
then
assure_exists curl
showcmd
"curl -fsSL '
$url
' | sudo apt-key add -"
a
=
curl
-fsSL
"
$url
"
|
$SUDO
apt-key add -
return
fi
sudocmd apt-key adv
--keyserver
"
$url
"
--recv
"
$fingerprint
"
}
__epm_addrepo_deb
()
{
assure_exists apt-add-repository software-properties-common
...
...
@@ -152,7 +166,7 @@ __epm_addrepo_deb()
# keywords
case
"
$1
"
in
docker
)
# sudo apt-add-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable
"
__epm_addkey_deb https://download.docker.com/linux/
$PKGVENDOR
/gpg
"9DC858229FC7DD38854AE2D88D81803C0EBFCD88
"
repo
=
"https://download.docker.com/linux/
$PKGVENDOR
$nd
stable"
;;
esac
...
...
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