Files
HomeServerCTs/CT-Files/transfersh/Scripts/update.sh
Bram Prieshof 7a0de87698 Fixed CT's : elkarbackupALP,duplicati,OmadaV3,transfersh,hass,pihole
Github updated api and now appends a semicolon to versions, added `tr -d :` to list for url filtering
elkarbackupALP:
* Github api Fix
duplicati:
* Github api fix
* Enabled in jenkinsfile
OmadaV3:
* Added Stop command for omada after installation to avoid DB corruption
* Moved automaticaly installed dependencies to package list
transfersh:
* Github api fix
hass:
* Added Missing python modules (sqlalchemy nvhash)
mailbackup:
* Github api fix
* Moved downlading of resources to project
pihole:
*Added support for ProxmoxHelper App updater
2022-09-07 01:02:50 +02:00

16 lines
870 B
Bash

#!/bin/ash
CurtransfershVersion=$(curl -s https://api.github.com/repos/dutchcoders/transfer.sh/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : )
if test "$CurtransfershVersion" = "$(cat /opt/transfer.sh/Version)" ; then
echo 'Transfer.sh up-to-date'
exit
else
echo 'Updating Transfer.sh'
service transfersh stop
mv /opt/transfer.sh/transfersh-linux-amd64 /opt/transfer.sh/transfersh-linux-amd64.old
curl -L -o /opt/transfer.sh/transfersh-linux-amd64 https://github.com/dutchcoders/transfer.sh/releases/download/"$CurtransfershVersion"/transfersh-"$CurtransfershVersion"-linux-amd64
chmod +x /opt/transfer.sh/transfersh-linux-amd64
chown transfersh:transfersh /opt/transfer.sh/transfersh-linux-amd64
echo "$CurtransfershVersion" > /opt/transfer.sh/Version
service transfersh start
fi