dont assume current directory in scripts
This commit is contained in:
parent
2cb83334ed
commit
01612f71bf
5 changed files with 18 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
||||||
RIOT_BRANCH=master
|
RIOT_BRANCH=master
|
||||||
|
|
||||||
|
BASE_DIR=$(realpath $(dirname $0))
|
||||||
|
pushd $BASE_DIR
|
||||||
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 riot.zip
|
unzip riot.zip
|
||||||
rm riot.zip
|
rm riot.zip
|
||||||
|
@ -6,3 +9,4 @@ mv riot-web-${RIOT_BRANCH} riot-web
|
||||||
pushd riot-web
|
pushd riot-web
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
popd
|
|
@ -1,5 +1,8 @@
|
||||||
|
BASE_DIR=$(realpath $(dirname $0))
|
||||||
|
pushd $BASE_DIR
|
||||||
pushd riot-web/webapp/
|
pushd riot-web/webapp/
|
||||||
python -m SimpleHTTPServer 8080 &
|
python -m SimpleHTTPServer 8080 &
|
||||||
PID=$!
|
PID=$!
|
||||||
popd
|
popd
|
||||||
echo $PID > riot.pid
|
echo $PID > riot.pid
|
||||||
|
popd
|
|
@ -1,3 +1,6 @@
|
||||||
|
BASE_DIR=$(realpath $(dirname $0))
|
||||||
|
pushd $BASE_DIR
|
||||||
PIDFILE=riot.pid
|
PIDFILE=riot.pid
|
||||||
kill $(cat $PIDFILE)
|
kill $(cat $PIDFILE)
|
||||||
rm $PIDFILE
|
rm $PIDFILE
|
||||||
|
popd
|
|
@ -1,4 +1,7 @@
|
||||||
|
BASE_DIR=$(realpath $(dirname $0))
|
||||||
|
pushd $BASE_DIR
|
||||||
pushd installations/consent
|
pushd installations/consent
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
./synctl start
|
./synctl start
|
||||||
|
popd
|
||||||
popd
|
popd
|
|
@ -1,4 +1,7 @@
|
||||||
|
BASE_DIR=$(realpath $(dirname $0))
|
||||||
|
pushd $BASE_DIR
|
||||||
pushd installations/consent
|
pushd installations/consent
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
./synctl stop
|
./synctl stop
|
||||||
|
popd
|
||||||
popd
|
popd
|
Loading…
Reference in a new issue