From: =?utf-8?b?UGljY2EgRnLDg8KpZMODwqlyaWMtRW1tYW51ZWw=?=
 <picca@synchrotron-soleil.fr>
Date: Tue, 22 Mar 2011 15:25:38 +0100
Subject: debian/fix_database_scripts
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

update the database creation script to deal with the debian path

Signed-off-by: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
---
 cppserver/database/create_db.sql.in | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/cppserver/database/create_db.sql.in b/cppserver/database/create_db.sql.in
index a10cfc7..db94157 100644
--- a/cppserver/database/create_db.sql.in
+++ b/cppserver/database/create_db.sql.in
@@ -1,19 +1,16 @@
 # vim: filetype=mysql:
 
-CREATE DATABASE @TANGO_DB_NAME@;
-USE @TANGO_DB_NAME@;
-
 #
 # Create all database tables
 #
 
-source create_db_tables.sql
+source /usr/share/tango-db/create_db_tables.sql
 
 #
 # Load the stored procedures
 #
 
-source stored_proc.sql
+source /usr/share/tango-db/stored_proc.sql
 
 #
 # Init the history identifiers
