diff --git a/install-php-extensions b/install-php-extensions index 3f0f5d9..c14e588 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -206,6 +206,11 @@ buildRequiredPackageLists() { buildRequiredPackageLists_distro="$(getDistro)" buildRequiredPackageLists_distroVersion="$(getDistroVersion)" buildRequiredPackageLists_phpv=$1 + case "$buildRequiredPackageLists_distro" in + alpine) + apk update + ;; + esac case "$buildRequiredPackageLists_distroVersion" in alpine@*) buildRequiredPackageLists_volatile="$PHPIZE_DEPS" @@ -644,9 +649,6 @@ buildRequiredPackageLists() { return fi case "$buildRequiredPackageLists_distro" in - alpine) - apk update - ;; debian) DEBIAN_FRONTEND=noninteractive apt-get update -q ;;