Linux server update.sh file

This issue has been tracked since 2021-11-14.

#!/bin/bash
lastver=$(cat version)
currver=$(curl -s https://github.com/YouROK/TorrServer/releases/latest | grep "MatriX.*" | cut -d '"' -f 2 | cut -d '/' -f 8)

if [[ "$currver" == "$lastver" ]]
then
echo "No need to update"
else
echo "Version not equal"
/usr/bin/supervisorctl stop Torrserver
mv ./TorrServer-linux-amd64 ./TorrServer-linux-amd64.$lastver
path="https://github.com/YouROK/TorrServer/releases/download/"$currver"/TorrServer-linux-amd64"
echo "Download "$path....
wget $path
echo $currver > version....
chmod +x ./TorrServer-linux-amd64
/usr/bin/supervisorctl start Torrserver
exit
fi

More Details About Repo
Owner Name YouROK
Repo Name TorrServer
Full Name YouROK/TorrServer
Language JavaScript
Created Date 2018-08-29
Updated Date 2022-06-24
Star Count 538
Watcher Count 42
Fork Count 108
Issue Count 5

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date