mirror of
https://github.com/anope/anope.git
synced 2026-07-10 04:43:13 +02:00
BUILD : 1.7.0 (39) BUGS : 10 NOTES : Fixed tables.sql detection on mydbgen script.
git-svn-id: svn://svn.anope.org/anope/trunk@39 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@29 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
84954ea74b
commit
ffccad22fb
+12
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user