From bc248f84c82fbc00707d45b2a2d1c5f03f44d6fe Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 9 Apr 2024 16:19:23 +0200 Subject: [PATCH] Fix installing tideways on Alpine Linux (#907) --- install-php-extensions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install-php-extensions b/install-php-extensions index 9d46c64..03f9265 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -3929,7 +3929,7 @@ installRemoteModule() { installRemoteModule_architecture=alpine-arm64 ;; *) - installRemoteModule_architecture=alpine + installRemoteModule_architecture=alpine-x86_64 ;; esac ;; @@ -3945,6 +3945,10 @@ installRemoteModule() { ;; esac installRemoteModule_url="$(curl -sSLf -o - https://tideways.com/profiler/downloads | grep -Eo "\"[^\"]+/tideways-php-([0-9]+\.[0-9]+\.[0-9]+)-$installRemoteModule_architecture.tar.gz\"" | cut -d'"' -f2)" + if test -z "$installRemoteModule_url"; then + echo 'Failed to find the tideways tarball to be downloaded' + exit 1 + fi printf 'Downloading tideways from %s\n' "$installRemoteModule_url" installRemoteModule_src="$(getPackageSource $installRemoteModule_url)" if test -d "$installRemoteModule_src/dist"; then