Browse code

added missing script directory

Jan Janak authored on 24/06/2008 13:51:30
Showing 1 changed files
... ...
@@ -290,17 +290,17 @@ create_db ()
290 290
     sql_query "" "FLUSH PRIVILEGES"
291 291
 
292 292
     # Load table definitions
293
-    sql_query $DBNAME < $CREATE_SCRIPT
293
+    sql_query $DBNAME < ${SCRIPT_DIR}/${CREATE_SCRIPT}
294 294
 
295 295
     # Load initial data
296
-    sql_query $DBNAME < $DATA_SCRIPT
296
+    sql_query $DBNAME < ${SCRIPT_DIR}/${DATA_SCRIPT}
297 297
 } # create_db
298 298
 
299 299
 
300 300
 # Update initial data
301 301
 update_db_data ()
302 302
 {
303
-    sql_query $DBNAME < $DATA_SCRIPT
303
+    sql_query $DBNAME < ${SCRIPT_DIR}/${DATA_SCRIPT}
304 304
 } # update_db_data
305 305
 
306 306