Browse code

kamctl: propagate DB_PATH to DBTEXT_PATH

- GH #3170

Daniel-Constantin Mierla authored on 30/06/2022 17:33:45
Showing 1 changed files
... ...
@@ -19,7 +19,11 @@ fi;
19 19
 
20 20
 # path to the dbtext database
21 21
 if [ -z "$DBTEXT_PATH" ] ; then
22
-	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
22
+	if [ -z "$DB_PATH" ] ; then
23
+		DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
24
+	else
25
+		DBTEXT_PATH=$DB_PATH
26
+	fi
23 27
 fi
24 28
 
25 29
 export DBTEXT_PATH
Browse code

kamctl remove svn ID's and history

Olle E. Johansson authored on 03/06/2016 08:34:25
Showing 1 changed files
... ...
@@ -1,4 +1,3 @@
1
-# $Id$
2 1
 #
3 2
 # control tool for maintaining Kamailio
4 3
 #
Browse code

more openser to kamailio migration

osas authored on 27/10/2012 16:00:28
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@ fi;
20 20
 
21 21
 # path to the dbtext database
22 22
 if [ -z "$DBTEXT_PATH" ] ; then
23
-	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/openser"
23
+	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
24 24
 fi
25 25
 
26 26
 export DBTEXT_PATH
Browse code

kamctl: moved from tools/ to utils/

- mv tools/kamctl utils/kamctl
- updated srdb1 Makefile and test/unit/include/common with the new
kamctl path

Andrei Pelinescu-Onciul authored on 09/10/2009 12:05:15
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+# $Id$
2
+#
3
+# control tool for maintaining Kamailio
4
+#
5
+#===================================================================
6
+
7
+##### ----------------------------------------------- #####
8
+### load SQL base
9
+#
10
+if [ -f "$MYLIBDIR/kamctl.sqlbase" ]; then
11
+	. "$MYLIBDIR/kamctl.sqlbase"
12
+else
13
+	echo "Cannot load SQL core functions '$MYLIBDIR/kamctl.sqlbase' - exiting ..."
14
+	exit -1
15
+fi
16
+
17
+if [ $TEST = "true" ]; then
18
+	DBTEXT_PATH="$MYLIBDIR/dbtext/kamailio/"
19
+fi;
20
+
21
+# path to the dbtext database
22
+if [ -z "$DBTEXT_PATH" ] ; then
23
+	DBTEXT_PATH="/usr/local/share/kamailio/dbtext/openser"
24
+fi
25
+
26
+export DBTEXT_PATH
27
+
28
+DBCMD=${MYLIBDIR}/dbtextdb/dbtextdb.py
29
+DBROCMD=${MYLIBDIR}/dbtextdb/dbtextdb.py