mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-15 08:47:56 +01:00
for --clean-start option, try not to remove games not created by this script.
This commit is contained in:
parent
668cc27f35
commit
b3342c6e8a
1 changed files with 6 additions and 6 deletions
|
@ -6,8 +6,8 @@ APP_NEW=""
|
||||||
DO_CLEAN=""
|
DO_CLEAN=""
|
||||||
APP_NEW_PARAMS=""
|
APP_NEW_PARAMS=""
|
||||||
NGAMES=""
|
NGAMES=""
|
||||||
UDP_PCT_START=0
|
UDP_PCT_START=5
|
||||||
UDP_PCT_INCR=5
|
UDP_PCT_INCR=10
|
||||||
UPGRADE_ODDS=""
|
UPGRADE_ODDS=""
|
||||||
NROOMS=""
|
NROOMS=""
|
||||||
HOST=""
|
HOST=""
|
||||||
|
@ -54,14 +54,14 @@ function cleanup() {
|
||||||
done
|
done
|
||||||
echo "cleaning everything up...."
|
echo "cleaning everything up...."
|
||||||
if [ -d $LOGDIR ]; then
|
if [ -d $LOGDIR ]; then
|
||||||
mv $LOGDIR /tmp/${LOGDIR}_$$
|
mv $LOGDIR /tmp/${LOGDIR}_$$
|
||||||
fi
|
fi
|
||||||
if [ -e $(dirname $0)/../../relay/xwrelay.log ]; then
|
if [ -e $(dirname $0)/../../relay/xwrelay.log ]; then
|
||||||
mkdir -p /tmp/${LOGDIR}_$$
|
mkdir -p /tmp/${LOGDIR}_$$
|
||||||
mv $(dirname $0)/../../relay/xwrelay.log /tmp/${LOGDIR}_$$
|
mv $(dirname $0)/../../relay/xwrelay.log /tmp/${LOGDIR}_$$
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "delete from games;" | psql -q -t xwgames
|
echo "DELETE FROM games WHERE room LIKE 'ROOM_%';" | psql -q -t xwgames
|
||||||
}
|
}
|
||||||
|
|
||||||
function connName() {
|
function connName() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue