Updated Builder-GetResources and SW-updateScripts
GetExternalResources has function for geting release version from github PhpMyadmin and elkarbackup(alpine) now have update tools
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#!/bin/ash
|
||||
. /opt/transfer.sh/Version
|
||||
|
||||
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 " ")
|
||||
|
||||
if test "$CurtransfershVersion" = "$transfershVersion" ; then
|
||||
if test "$CurtransfershVersion" = "$(cat /opt/transfer.sh/Version)" ; then
|
||||
echo 'Transfer.sh up-to-date'
|
||||
exit
|
||||
else
|
||||
@@ -13,6 +11,6 @@ else
|
||||
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 "transfershVersion=$CurtransfershVersion" > /opt/transfer.sh/Version
|
||||
echo "$CurtransfershVersion" > /opt/transfer.sh/Version
|
||||
service transfersh start
|
||||
fi
|
||||
Reference in New Issue
Block a user