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

SourceForge.net noreply at sourceforge.net
Mon Mar 12 10:27:27 CET 2007


Patches item #1669267, was opened at 2007-02-26 18:30
Message generated for change (Comment added) made by miconda
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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
>Assigned to: Daniel-Constantin Mierla (miconda)
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 


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

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2007-03-12 11:27

Message:
Logged In: YES 
user_id=1246013
Originator: NO

Applied.

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

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