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
This commit is contained in:
@@ -4,7 +4,7 @@ addgroup transfersh
|
||||
adduser -S -s /bin/ash -h /home/transfersh -D -G transfersh transfersh
|
||||
mkdir -p /opt/transfer.sh/CustomTheme
|
||||
#Get Resources
|
||||
CurrentVersion=$(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 " ")
|
||||
CurrentVersion=$(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 : )
|
||||
echo $CurrentVersion > /opt/transfer.sh/Version
|
||||
curl -L --retry 7 --retry-delay 5 https://github.com/dutchcoders/transfer.sh/releases/download/"$CurrentVersion"/transfersh-"$CurrentVersion"-linux-amd64 -o /opt/transfer.sh/transfersh-linux-amd64 || exit 1
|
||||
#Install transfer.sh custom theme
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/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 " ")
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user