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