mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
22 lines
396 B
Bash
Executable file
22 lines
396 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
BASE_DIR=$(cd $(dirname $0) && pwd)
|
|
PIDFILE=riot.pid
|
|
CONFIG_BACKUP=config.e2etests_backup.json
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -f $PIDFILE ]; then
|
|
echo "stopping riot server ..."
|
|
PID=$(cat $PIDFILE)
|
|
rm $PIDFILE
|
|
kill $PID
|
|
|
|
# revert config file
|
|
cd riot-web/webapp
|
|
rm config.json
|
|
if [ -f $CONFIG_BACKUP ]; then
|
|
mv $CONFIG_BACKUP config.json
|
|
fi
|
|
fi
|