Module: kamailio
Branch: master
Commit: 1f6ec9022f2358441233e8b139e13cbdcf0947aa
URL:
https://github.com/kamailio/kamailio/commit/1f6ec9022f2358441233e8b139e13cb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-30T19:34:28+02:00
kamctl: propagate DB_PATH to DBTEXT_PATH
- GH #3170
---
Modified: utils/kamctl/kamctl.dbtext
---
Diff:
https://github.com/kamailio/kamailio/commit/1f6ec9022f2358441233e8b139e13cb…
Patch:
https://github.com/kamailio/kamailio/commit/1f6ec9022f2358441233e8b139e13cb…
---
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