mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
install ComplexHttpServer regardless of whether riot is already installed
This commit is contained in:
parent
58e6d1bfd3
commit
cfff4a998d
1 changed files with 6 additions and 6 deletions
|
@ -2,12 +2,6 @@
|
||||||
set -e
|
set -e
|
||||||
RIOT_BRANCH=develop
|
RIOT_BRANCH=develop
|
||||||
|
|
||||||
BASE_DIR=$(cd $(dirname $0) && pwd)
|
|
||||||
if [ -d $BASE_DIR/riot-web ]; then
|
|
||||||
echo "riot is already installed"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
|
# Install ComplexHttpServer (a drop in replacement for Python's SimpleHttpServer
|
||||||
# but with support for multiple threads) into a virtualenv.
|
# but with support for multiple threads) into a virtualenv.
|
||||||
|
@ -26,6 +20,12 @@ cd $BASE_DIR
|
||||||
deactivate
|
deactivate
|
||||||
)
|
)
|
||||||
|
|
||||||
|
BASE_DIR=$(cd $(dirname $0) && pwd)
|
||||||
|
if [ -d $BASE_DIR/riot-web ]; then
|
||||||
|
echo "riot is already installed"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
curl -L https://github.com/vector-im/riot-web/archive/${RIOT_BRANCH}.zip --output riot.zip
|
||||||
unzip -q riot.zip
|
unzip -q riot.zip
|
||||||
rm riot.zip
|
rm riot.zip
|
||||||
|
|
Loading…
Reference in a new issue