Browse code

kamctl: propagate DB_PATH to DBTEXT_PATH

- GH #3170

(cherry picked from commit 1f6ec9022f2358441233e8b139e13cbdcf0947aa)

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