mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +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=""
|
||||
APP_NEW_PARAMS=""
|
||||
NGAMES=""
|
||||
UDP_PCT_START=0
|
||||
UDP_PCT_INCR=5
|
||||
UDP_PCT_START=5
|
||||
UDP_PCT_INCR=10
|
||||
UPGRADE_ODDS=""
|
||||
NROOMS=""
|
||||
HOST=""
|
||||
|
@ -54,14 +54,14 @@ function cleanup() {
|
|||
done
|
||||
echo "cleaning everything up...."
|
||||
if [ -d $LOGDIR ]; then
|
||||
mv $LOGDIR /tmp/${LOGDIR}_$$
|
||||
mv $LOGDIR /tmp/${LOGDIR}_$$
|
||||
fi
|
||||
if [ -e $(dirname $0)/../../relay/xwrelay.log ]; then
|
||||
mkdir -p /tmp/${LOGDIR}_$$
|
||||
mv $(dirname $0)/../../relay/xwrelay.log /tmp/${LOGDIR}_$$
|
||||
mkdir -p /tmp/${LOGDIR}_$$
|
||||
mv $(dirname $0)/../../relay/xwrelay.log /tmp/${LOGDIR}_$$
|
||||
fi
|
||||
|
||||
echo "delete from games;" | psql -q -t xwgames
|
||||
echo "DELETE FROM games WHERE room LIKE 'ROOM_%';" | psql -q -t xwgames
|
||||
}
|
||||
|
||||
function connName() {
|
||||
|
|
Loading…
Add table
Reference in a new issue