2018-07-27 21:08:14 +08:00
|
|
|
#!/bin/bash
|
2018-07-27 21:04:04 +08:00
|
|
|
BASE_DIR=$(readlink -f $(dirname $0))
|
2018-07-18 23:52:51 +08:00
|
|
|
PIDFILE=riot.pid
|
2018-07-28 01:27:53 +08:00
|
|
|
CONFIG_BACKUP=config.e2etests_backup.json
|
|
|
|
|
|
|
|
cd $BASE_DIR
|
|
|
|
|
2018-07-28 00:43:40 +08:00
|
|
|
if [ -f $PIDFILE ]; then
|
2018-08-14 18:53:16 +08:00
|
|
|
echo "stopping riot server ..."
|
|
|
|
PID=$(cat $PIDFILE)
|
|
|
|
rm $PIDFILE
|
|
|
|
kill $PID
|
2018-07-28 01:27:53 +08:00
|
|
|
|
2018-08-14 18:53:16 +08:00
|
|
|
# revert config file
|
|
|
|
cd riot-web/webapp
|
|
|
|
rm config.json
|
|
|
|
if [ -f $CONFIG_BACKUP ]; then
|
|
|
|
mv $CONFIG_BACKUP config.json
|
|
|
|
fi
|
2018-07-28 00:43:40 +08:00
|
|
|
fi
|