Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
aedfcb8a
Commit
aedfcb8a
authored
Sep 18, 2017
by
Stéphane Graber
Committed by
GitHub
Sep 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1811 from runejuhl/fix-alpine-apk-keys
Change alpine template file check to also check file size (`-f` => `-s`)
parents
6cc7d050
fc20af63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc-alpine.in
templates/lxc-alpine.in
+2
-2
No files found.
templates/lxc-alpine.in
View file @
aedfcb8a
...
@@ -185,7 +185,7 @@ fetch_apk_keys() {
...
@@ -185,7 +185,7 @@ fetch_apk_keys() {
echo
"
$APK_KEYS_SHA256
"
|
while
read
-r
line
;
do
echo
"
$APK_KEYS_SHA256
"
|
while
read
-r
line
;
do
keyname
=
"
${
line
##*
}
"
keyname
=
"
${
line
##*
}
"
if
[
!
-
f
"
$keyname
"
]
;
then
if
[
!
-
s
"
$keyname
"
]
;
then
fetch
"
$APK_KEYS_URI
/
$keyname
"
>
"
$keyname
"
fetch
"
$APK_KEYS_URI
/
$keyname
"
>
"
$keyname
"
fi
fi
echo
"
$line
"
|
sha256sum
-c
-
echo
"
$line
"
|
sha256sum
-c
-
...
@@ -210,7 +210,7 @@ fetch_apk_static() {
...
@@ -210,7 +210,7 @@ fetch_apk_static() {
fetch
"
$MIRROR_URL
/latest-stable/main/
$arch
/
${
pkg_name
}
-
${
pkg_ver
}
.apk"
\
fetch
"
$MIRROR_URL
/latest-stable/main/
$arch
/
${
pkg_name
}
-
${
pkg_ver
}
.apk"
\
|
tar
-xz
-C
"
$dest
"
sbin/
# --extract --gzip --directory
|
tar
-xz
-C
"
$dest
"
sbin/
# --extract --gzip --directory
[
-
f
"
$dest
/sbin/apk.static"
]
||
die 2
'apk.static not found'
[
-
s
"
$dest
/sbin/apk.static"
]
||
die 2
'apk.static not found'
local
keyname
=
$(
echo
"
$dest
"
/sbin/apk.static.
*
.pub |
sed
's/.*\.SIGN\.RSA\.//'
)
local
keyname
=
$(
echo
"
$dest
"
/sbin/apk.static.
*
.pub |
sed
's/.*\.SIGN\.RSA\.//'
)
openssl dgst
-sha1
\
openssl dgst
-sha1
\
...
...
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