|
@@ -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`
|
|
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
|
|
if [ "$current_version" != "$latest_version" ]; then
|
|
systemctl stop gotosocial.service
|
|
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
|
|
# user permissions or whatever
|
|
systemctl start gotosocial.service
|
|
systemctl start gotosocial.service
|
|
else
|
|
else
|