Hello,
every update I struggle with downloading the new version using ubuntu. I copy the download link to the .tar.gz file, but wget won’t download the link; it will download a some-kb sized “index.html?p=%2Fpro%2Fseafilepro-server_6.0.2_x86-64.tar.gz” file instead
So I always have to download the file on my Desktop PC, upload it to the server and continue updating there.
A (always working) valid link *-latest.tar.gz which will work with wget would be nice.
The new 7.0 server needs javascript so this script does not work anymore. So here is a quick and even dirtier bash script to download the latest (or a given) seafile pro version:
#!/bin/bash
CHANGELOG=https://manual.seafile.com/changelog/changelog-for-seafile-professional-server.html
if [ -z "$1" ]
then
VERSION=`wget -q -O- $CHANGELOG | grep "h3 id" | head -1 | cut -d\> -f2 | cut -d\ -f1`
else
VERSION="$1"
fi
ID=XXX
SERVER="https://download.seafile.com"
#URL="$SERVER/d/$ID/files/?p=%2Fpro%2Fseafile-pro-server_${VERSION}_x86-64.tar.gz&dl=1"
URL="$SERVER/d/$ID/files/?p=%2Fpro%2Fseafile-pro-server_${VERSION}_x86-64_Ubuntu.tar.gz&dl=1"
wget -c --trust-server-names $URL