Module: kamailio
Branch: 5.6
Commit: d83ec54bfc13ac1ddc5a6d39dfaa4f3313d976a9
URL:
https://github.com/kamailio/kamailio/commit/d83ec54bfc13ac1ddc5a6d39dfaa4f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-07-04T10:35:48+02:00
kamctl: propagate DB_PATH to DBTEXT_PATH
- GH #3170
(cherry picked from commit 1f6ec9022f2358441233e8b139e13cbdcf0947aa)
---
Modified: utils/kamctl/kamctl.dbtext
---
Diff:
https://github.com/kamailio/kamailio/commit/d83ec54bfc13ac1ddc5a6d39dfaa4f3…
Patch:
https://github.com/kamailio/kamailio/commit/d83ec54bfc13ac1ddc5a6d39dfaa4f3…
---
diff --git a/utils/kamctl/kamctl.dbtext b/utils/kamctl/kamctl.dbtext
index 2198d30db2..0e5f9c424a 100644
--- a/utils/kamctl/kamctl.dbtext
+++ b/utils/kamctl/kamctl.dbtext
@@ -19,7 +19,11 @@ fi;
# path to the dbtext database
if [ -z "$DBTEXT_PATH" ] ; then
- DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
+ if [ -z "$DB_PATH" ] ; then
+ DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
+ else
+ DBTEXT_PATH=$DB_PATH
+ fi
fi
export DBTEXT_PATH