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:
parent
47688134fc
commit
fed5f80d19
|
@ -32,8 +32,10 @@ elif [[ $VERSION != `cat /usr/local/lib/z-push/version` ]]; then
|
||||||
fi
|
fi
|
||||||
if [ $needs_update == 1 ]; then
|
if [ $needs_update == 1 ]; then
|
||||||
rm -rf /usr/local/lib/z-push
|
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
|
mkdir /usr/local/lib/z-push
|
||||||
cp -r /tmp/z-push/src/* /usr/local/lib/z-push
|
cp -r /tmp/z-push/src/* /usr/local/lib/z-push
|
||||||
|
|
Loading…
Reference in New Issue