Module: kamailio
Branch: master
Commit: 4968e8994157f1152bf7461b16049d67e5c9cc59
URL:
https://github.com/kamailio/kamailio/commit/4968e8994157f1152bf7461b16049d6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-07-29T12:25:17+02:00
kamctl: option to enable kamctl test from shell variable
- set KAMCTL_TEST variable in shell
---
Modified: utils/kamctl/kamctl
---
Diff:
https://github.com/kamailio/kamailio/commit/4968e8994157f1152bf7461b16049d6…
Patch:
https://github.com/kamailio/kamailio/commit/4968e8994157f1152bf7461b16049d6…
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index aab756a191..c97ad491a2 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -11,7 +11,11 @@ PATH=$PATH:/usr/local/sbin/
# for testing only, please don't enable this in production environments
# as this introduce security risks
-TEST="false"
+if [ -z "$KAMCTL_TEST" ]; then
+ TEST="false"
+else
+ TEST="true"
+fi
### include config files