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.
This commit is contained in:
Nils Norman Haukås 2018-07-15 00:17:43 +02:00
parent 47688134fc
commit fed5f80d19
No known key found for this signature in database
GPG Key ID: BB8DD87F83E1359E
1 changed files with 3 additions and 1 deletions

View File

@ -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