From fed5f80d19f63422704da73a5f2cb2dc0dc8c127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Norman=20Hauk=C3=A5s?= Date: Sun, 15 Jul 2018 00:17:43 +0200 Subject: [PATCH] Bugfix: Failing z-push installation. Replace git clone with wget git clone (which uses curl) underneath was failing. Curiously, the same git clone command would work on my macos host machine. VM versions: Curl, 7.35.0 OpenSSL/1.0.1f Macos versions: Curl, 7.54.0 LibreSSL/2.0.20 Tried compiling a newer version of curl from source, but I got stuck chasing missing dependencies. Did a workaround with wget download that manages to download over https. --- setup/zpush.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/zpush.sh b/setup/zpush.sh index eac3a0a0..6be18a93 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -32,8 +32,10 @@ elif [[ $VERSION != `cat /usr/local/lib/z-push/version` ]]; then fi if [ $needs_update == 1 ]; then rm -rf /usr/local/lib/z-push + rm -rf /tmp/z-push - git_clone https://stash.z-hub.io/scm/zp/z-push.git $VERSION '' /tmp/z-push + wget -nv -O /tmp/z-push.zip "https://stash.z-hub.io/rest/api/latest/projects/ZP/repos/z-push/archive?at=refs/tags/$VERSION&format=zip" + unzip -q /tmp/z-push.zip -d /tmp/z-push mkdir /usr/local/lib/z-push cp -r /tmp/z-push/src/* /usr/local/lib/z-push