From 77633bd9344c184ba63f44bb2a1241ce04fe7ebd Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Fri, 6 Aug 2021 10:39:16 +0200 Subject: [PATCH] Fix installing SSL library on Alpine 3.14 Test: imap,zip,imap+zip --- install-php-extensions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 5060850..637cca7 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -411,7 +411,12 @@ buildRequiredPackageLists() { buildRequiredPackageLists_volatile='' case "$DISTRO" in alpine) - apk update + if test $DISTRO_VERSION_NUMBER = '3.14'; then + # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12763#note_172090 + apk -U upgrade + else + apk update + fi ;; esac case "$DISTRO_VERSION" in