Commit cb33d884 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play resilio-sync: fix PKGURL (eterbug #17865)

parent 71ad71da
......@@ -10,42 +10,38 @@ URL="https://www.resilio.com/sync/download/"
warn_version_is_not_supported
pkgtype="$(epm print info -p)"
debarch="$(epm print info --debian-arch)"
rpmarch="$(epm print info -a)"
# can't get latest version from their repo and changelog page, so hardcoding for now
VERSION="3.1.1.1075"
# version in the repo is outdated and doesn't work with cdn
#VERSION=$(eget -O- 'http://linux-packages.resilio.com/resilio-sync/deb/dists/resilio-sync/non-free/binary-amd64/Packages' \
#| awk '/^Package: resilio-sync$/{p=1;next} p&&/^Version:/{print $2; exit}' | sed 's/-.*//')
VERSION=$(eget -O- 'http://linux-packages.resilio.com/resilio-sync/deb/dists/resilio-sync/non-free/binary-amd64/Packages' \
| awk '/^Package: resilio-sync$/{p=1;next} p&&/^Version:/{print $2; exit}' | sed 's/-.*//')
case "$pkgtype" in
rpm)
# https://download-cdn.resilio.com/3.1.1.1075/rpm/x86_64/0/resilio-sync-x86_64.rpm
# https://download-cdn.resilio.com/3.1.2.1076/linux/x86_64/0/resilio-sync-x86_64.rpm
file="resilio-sync-${rpmarch}.rpm"
link_type="rpm"
arch="$rpmarch"
;;
*)
# https://download-cdn.resilio.com/3.1.1.1075/debian/amd64/0/resilio-sync-amd64.deb
# https://download-cdn.resilio.com/3.1.2.1076/linux/amd64/0/resilio-sync-amd64.deb
file="resilio-sync-${debarch}.deb"
link_type="debian"
arch="$debarch"
;;
esac
PKGURL="https://download-cdn.resilio.com/$VERSION/$link_type/$arch/0/$file"
PKGURL="https://download-cdn.resilio.com/$VERSION/linux/$arch/0/$file"
install_pkgurl
cat <<EOF
Note: run
# serv resilio-sync on
to start Guardant Control Center permanently
to start Resilio Sync permanently
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment