From e3053370d055b29ccc4c0e535f52a5e0dd8fd4e5 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 14 Sep 2010 21:18:04 -0700 Subject: [PATCH] add cmd to build the database and main table --- xwords4/relay/xwrelay.sh | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/xwords4/relay/xwrelay.sh b/xwords4/relay/xwrelay.sh index 4ec211ef0..3a37ed739 100755 --- a/xwords4/relay/xwrelay.sh +++ b/xwords4/relay/xwrelay.sh @@ -12,6 +12,27 @@ LOGFILE=/tmp/xwrelay_log.txt date > $LOGFILE +usage() { + echo "usage: $0 start | stop | restart | mkdb" +} + +make_db() { + createdb xwgames + cat | psql xwgames --file - <