mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-11-27 04:24:46 +01:00
Fix jessie keyring (#660)
This commit is contained in:
parent
e17de5b5bd
commit
1ce733079d
@ -328,7 +328,7 @@ testExtensionFor() {
|
||||
printf ' - Docker image: %s\n' "$testExtensionFor_Image"
|
||||
testExtensionFor_out="$(mktemp)"
|
||||
testExtensionFor_start=$(date +%s)
|
||||
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
|
||||
if $(docker run --rm --volume "$CI_BUILD_DIR:/app" --env CI=true --env IPE_FIX_CACERTS=1 --env IPE_ASPELL_LANGUAGES='en fr' --workdir /app "$testExtensionFor_Image" sh -c "./scripts/fix-jessie-keyring && ./install-php-extensions $1 && php ./scripts/check-installed-extension.php $1" >"$testExtensionFor_out" 2>&1); then
|
||||
testExtensionFor_end=$(date +%s)
|
||||
testExtensionFor_delta=$(expr $testExtensionFor_end - $testExtensionFor_start)
|
||||
rm -rf "$testExtensionFor_out"
|
||||
|
12
scripts/fix-jessie-keyring
Executable file
12
scripts/fix-jessie-keyring
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Let's set a sane environment
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
if grep -q 'VERSION="8 (jessie)"' /etc/os-release; then
|
||||
echo 'Fix Debian Jessie keyring'
|
||||
curl -o /tmp/debian-archive-keyring.deb -sSLf http://ftp.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_2019.1+deb10u1_all.deb
|
||||
dpkg -i /tmp/debian-archive-keyring.deb
|
||||
rm -rf /tmp/debian-archive-keyring.deb
|
||||
fi
|
Loading…
Reference in New Issue
Block a user