This repository was archived by the owner on May 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ RUN apt-get update \
1717 libssl-dev \
1818 libpcre3-dev \
1919 make \
20- && export NGINX_VERSION=1.10.1 VTS_VERSION=0.1.8 BUILD_PATH=/tmp/build PREFIX=/opt/router \
20+ && export NGINX_VERSION=1.10.1 SIGNING_KEY=A1C052F8 VTS_VERSION=0.1.8 BUILD_PATH=/tmp/build PREFIX=/opt/router \
2121 && rm -rf "$PREFIX" \
2222 && mkdir "$PREFIX" \
2323 && mkdir "$BUILD_PATH" \
2424 && cd "$BUILD_PATH" \
25- && get_src 1fd35846566485e03c0e318989561c135c598323ff349c503a6c14826487a801 \
25+ && get_src_gpg $SIGNING_KEY \
2626 "http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz" \
2727 && get_src 6bb9a36d8d70302d691c49557313fb7262cafd942a961d11a2730d9a5d9f70e0 \
2828 "https://github.com/vozlt/nginx-module-vts/archive/v$VTS_VERSION.tar.gz" \
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ key=" $1 "
4+ url=" $2 "
5+ f=$( basename " $url " )
6+
7+ gpg --recv-keys --keyserver keyserver.ubuntu.com " $key "
8+ # Trust public key without a interactive prompt
9+ gpg --list-keys --fingerprint --with-colons |
10+ sed -E -n -e ' s/^fpr:::::::::([0-9A-F]+):$/\1:6:/p' |
11+ gpg --import-ownertrust
12+ curl -sSL " $url " -o " $f "
13+ curl -sSL " $url .asc" -o " $f .asc"
14+ gpg --verify $f .asc
15+ tar xzf " $f "
16+ rm " $f "
You can’t perform that action at this time.
0 commit comments