Commit fd613c04 authored by Milan's avatar Milan
Browse files

add update-element.sh

parent b376a109
#!/bin/bash
set -e
# where is your element-web located?
elementroot="/var/www/element.mysite.io/""
riotversion=`curl --silent https://github.com/vector-im/element-web/releases/latest | sed 's#.*tag/\(.*\)\".*#\1#'`
wget https://github.com/vector-im/element-web/releases/download/$riotversion/element-$riotversion.tar.gz
tar -xf element-$riotversion.tar.gz
cp -r element-$riotversion/* ${elementroot}
rm -rv element-$riotversion*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment