[Devel] [ openser-Patches-1669267 ] DBTEXT_PATH should take precedence while creating dbtext db

SourceForge.net noreply at sourceforge.net
Mon Feb 26 17:30:40 CET 2007


Patches item #1669267, was opened at 2007-02-26 11:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1669267&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: tools
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Nobody/Anonymous (nobody)
Summary: DBTEXT_PATH should take precedence while creating dbtext db

Initial Comment:
Here's a small patch that will take in consideration DBTEXT_PATH while creating the dbtext tables:

# diff -Naur /usr/local/sbin/sc.dbtext.orig /usr/local/sbin/sc.dbtext
--- /usr/local/sbin/sc.dbtext.orig	2007-02-26 11:18:33.000000000 -0500
+++ /usr/local/sbin/sc.dbtext	2007-02-26 11:28:50.000000000 -0500
@@ -253,7 +253,7 @@
 
            * control and diagnostics *
  dbtext [dbtext_path] ... create the needed dbtext files (default 
-                          location is /usr/local/etc/openser/dbtext)
+                          location is $DBTEXT_PATH)
 
            * Database Selection *
  
@@ -854,7 +854,9 @@
 	dbtext)
 		
 		if [ $# -eq 1 ] ; then
-			DBTEXT_PATH="/usr/local/etc/openser/dbtext"
+			if [ -z $DBTEXT_PATH ] ; then
+				DBTEXT_PATH="/usr/local/etc/openser/dbtext"
+			fi
 		elif [ $# -eq 2 ]; then
 			DBTEXT_PATH=$2
 		else 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=1669267&group_id=139143



More information about the Devel mailing list