Ver Fonte

Use getbin.io for different OS/arch

poesty há 8 meses atrás
pai
commit
3ae2cae83e
3 ficheiros alterados com 3 adições e 8 exclusões
  1. 1 3
      update/update_gotosocial.sh
  2. 1 2
      update/update_miniflux.sh
  3. 1 3
      update/update_navidrome.sh

+ 1 - 3
update/update_gotosocial.sh

@@ -3,9 +3,7 @@ current_version=v`/gotosocial/gotosocial -v | cut -d ' ' -f 3`
 latest_version=`curl -s https://api.github.com/repos/superseriousbusiness/gotosocial/releases/latest | grep 'tag_name' | cut -d '"' -f 4`
 if [ "$current_version" != "$latest_version" ]; then
 	systemctl stop gotosocial.service
-	wget `curl -s https://api.github.com/repos/superseriousbusiness/gotosocial/releases/latest | grep 'browser_download_url.*linux_amd64' | cut -d '"' -f 4` -O /tmp/gotosocial.tar.gz
-	tar -xvzf /tmp/gotosocial.tar.gz -C /gotosocial
-	rm /tmp/gotosocial.tar.gz
+	wget -qO- https://getbin.io/superseriousbusiness/gotosocial | tar xvz -C /gotosocial
 	# user permissions or whatever
 	systemctl start gotosocial.service
 else

+ 1 - 2
update/update_miniflux.sh

@@ -1,7 +1,6 @@
 #!/bin/bash
 export DATABASE_URL=""
 ./miniflux -flush-sessions
-wget `curl -s https://api.github.com/repos/miniflux/v2/releases/latest | grep 'browser_download_url.*linux-amd64' | cut -d '"' -f 4`
-mv miniflux-linux-amd64 miniflux
+wget -qO miniflux https://getbin.io/miniflux/v2
 chmod +x miniflux
 ./miniflux -migrate

+ 1 - 3
update/update_navidrome.sh

@@ -3,9 +3,7 @@ current_version=v`/opt/navidrome/navidrome -v | cut -d ' ' -f 1`
 latest_version=`curl -s https://api.github.com/repos/navidrome/navidrome/releases/latest | grep 'tag_name' | cut -d '"' -f 4`
 if [ "$current_version" != "$latest_version" ]; then
 	systemctl stop navidrome.service
-	wget `curl -s https://api.github.com/repos/navidrome/navidrome/releases/latest | grep 'browser_download_url.*linux_amd64' | cut -d '"' -f 4` -O /tmp/Navidrome.tar.gz
-	tar -xvzf /tmp/Navidrome.tar.gz -C /opt/navidrome/
-	rm /tmp/Navidrome.tar.gz
+	wget -qO- https://getbin.io/navidrome/navidrome | tar xvz -C /opt/navidrome/
 	# user permissions or whatever
 	systemctl start navidrome.service
 else