mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-02 09:27:58 +01:00
Fix installing relay on Alpine Linux (#733)
This commit is contained in:
parent
495a062d40
commit
1652324746
@ -3170,8 +3170,18 @@ installRemoteModule() {
|
|||||||
installRemoteModule_hardware=x86-64
|
installRemoteModule_hardware=x86-64
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
printf 'Downloading relay v%s (%s)... ' "$installRemoteModule_version" "$installRemoteModule_hardware"
|
if test "$DISTRO" = alpine; then
|
||||||
installRemoteModule_url="https://builds.r2.relay.so/v${installRemoteModule_version}/relay-v${installRemoteModule_version}-php${PHP_MAJDOTMIN_VERSION}-${DISTRO}-${installRemoteModule_hardware}.tar.gz"
|
if test $DISTRO_MAJMIN_VERSION -lt 317; then
|
||||||
|
installRemoteModule_distro=alpine3.9
|
||||||
|
else
|
||||||
|
installRemoteModule_distro=alpine3.17
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
installRemoteModule_distro="$DISTRO"
|
||||||
|
fi
|
||||||
|
# See https://relay.so/builds
|
||||||
|
installRemoteModule_url="https://builds.r2.relay.so/v${installRemoteModule_version}/relay-v${installRemoteModule_version}-php${PHP_MAJDOTMIN_VERSION}-${installRemoteModule_distro}-${installRemoteModule_hardware}.tar.gz"
|
||||||
|
printf 'Downloading relay v%s (%s) from %s... ' "$installRemoteModule_version" "$installRemoteModule_hardware" "$installRemoteModule_url"
|
||||||
installRemoteModule_src="$(getPackageSource $installRemoteModule_url)"
|
installRemoteModule_src="$(getPackageSource $installRemoteModule_url)"
|
||||||
echo 'done.'
|
echo 'done.'
|
||||||
cp -- "$installRemoteModule_src/relay-pkg.so" "$PHP_EXTDIR/relay.so"
|
cp -- "$installRemoteModule_src/relay-pkg.so" "$PHP_EXTDIR/relay.so"
|
||||||
|
Loading…
Reference in New Issue
Block a user