summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rwxr-xr-xbin/mydbgen15
-rw-r--r--version.log6
3 files changed, 18 insertions, 4 deletions
diff --git a/Changes b/Changes
index a3882c05f..6102e3117 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
Anope Version 1.7.0
--------------------
Provided by Anope Dev. <dev@anope.org>
+2004/04/11 Fixed table.sql detection on mydbgen script (Bug #10)
2004/04/09 Fixed segfault due to coreless nicks in MySQL db (Bug #8)
2004/04/08 Added NickRegDelay. Nicks have to be connected longer than X seconds before a /ns register.
2004/04/08 Added "is a services root administrator" to /ns info.
diff --git a/bin/mydbgen b/bin/mydbgen
index e78b025c9..717e5b29b 100755
--- a/bin/mydbgen
+++ b/bin/mydbgen
@@ -1,8 +1,9 @@
#!/bin/sh
#
+# $Id$
# Location of the .sql file with the schema
-DBFILE="data/tables.sql"
+DBSQL="tables.sql"
# Schema Version
SVER="1"
@@ -18,8 +19,16 @@ else
n="-n"
fi
-if [ ! -f $DBFILE ] ; then
- echo "Error: Required file $DBFILE is inaccessible!";
+# Fix for bug 10
+for try in HOME/services anope/data ../data data .. .
+do
+ if [ -f "$try/$DBSQL" ]; then
+ DBFILE="$try/$DBSQL"
+ fi
+done
+
+if [ ! -f "./$DBFILE" ] ; then
+ echo "Error: Required file $DBSQL was not found!";
exit
fi
diff --git a/version.log b/version.log
index b03498e8e..8a2699c04 100644
--- a/version.log
+++ b/version.log
@@ -8,11 +8,15 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="0"
-VERSION_BUILD="38"
+VERSION_BUILD="39"
VERSION_EXTRA=""
# $Log$
#
+# BUILD : 1.7.0 (39)
+# BUGS : 10
+# NOTES : Fixed tables.sql detection on mydbgen script.
+#
# BUILD : 1.7.0 (38)
# BUGS : 008
# NOTES : Fixed segfault due to coreless nicks in MySQL db on behalf of Keeper