u1-liquid

Upgrade vector-im/riot-web

Sep 7th, 2019
163
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. pushd /home/matrix/riot > /dev/null
  4.  
  5. LATEST=$(curl -sSL https://api.github.com/repos/vector-im/riot-web/releases/latest | grep "browser_download_url" | grep -o -E "https://github.com/(.+)\.\w+" | grep -E "\.tar\.gz$")
  6. curl -sSL -o latest $LATEST.asc
  7. diff current latest
  8. if [[ $? -eq 0 ]]; then
  9.   rm latest
  10. else
  11.   mv -f latest current
  12.   curl -sSL -o riot.tar.gz $LATEST
  13.   tar xvzf riot.tar.gz
  14.   rm -rf live riot.tar.gz
  15.   mv riot-* live
  16.   ln -s /home/matrix/riot/config.json live/config.json
  17. fi
  18.  
  19. popd > /dev/null
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×