Fix installing relay on Debian with libssl3 (#734)

pull/737/head 2.1.19
Michele Locati 2023-04-21 09:50:32 +02:00 committed by GitHub
parent f07e02c4a1
commit 5d18994cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 10 deletions

View File

@ -3170,17 +3170,26 @@ installRemoteModule() {
installRemoteModule_hardware=x86-64 installRemoteModule_hardware=x86-64
;; ;;
esac esac
if test "$DISTRO" = alpine; then installRemoteModule_distro="$DISTRO"
if test $DISTRO_MAJMIN_VERSION -lt 317; then installRemoteModule_flags=''
installRemoteModule_distro=alpine3.9 case "$DISTRO" in
else alpine)
installRemoteModule_distro=alpine3.17 if test $DISTRO_MAJMIN_VERSION -lt 317; then
fi installRemoteModule_distro=alpine3.9
else else
installRemoteModule_distro="$DISTRO" installRemoteModule_distro=alpine3.17
fi fi
;;
debian)
case "$(dpkg -l 'libssl*' | grep -E '^ii ' | cut -d' ' -f3)" in
libssl3*)
installRemoteModule_flags=+libssl3
;;
esac
;;
esac
# See https://relay.so/builds # 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" installRemoteModule_url="https://builds.r2.relay.so/v${installRemoteModule_version}/relay-v${installRemoteModule_version}-php${PHP_MAJDOTMIN_VERSION}-${installRemoteModule_distro}-${installRemoteModule_hardware}${installRemoteModule_flags}.tar.gz"
printf 'Downloading relay v%s (%s) from %s... ' "$installRemoteModule_version" "$installRemoteModule_hardware" "$installRemoteModule_url" 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.'