mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-26 10:28:46 +08:00
20 lines
347 B
Bash
Executable File
20 lines
347 B
Bash
Executable File
#!/bin/bash
|
|
BASE_DIR=$(readlink -f $(dirname $0))
|
|
PIDFILE=riot.pid
|
|
CONFIG_BACKUP=config.e2etests_backup.json
|
|
|
|
cd $BASE_DIR
|
|
|
|
if [ -f $PIDFILE ]; then
|
|
echo "stopping riot server ..."
|
|
kill $(cat $PIDFILE)
|
|
rm $PIDFILE
|
|
|
|
# revert config file
|
|
cd riot-web/webapp
|
|
rm config.json
|
|
if [ -f $CONFIG_BACKUP ]; then
|
|
mv $CONFIG_BACKUP config.json
|
|
fi
|
|
fi
|