diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl index a5f51803d88..a4bee737564 100755 --- a/utils/kamctl/kamctl +++ b/utils/kamctl/kamctl @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # control tool for maintaining Kamailio # @@ -11,7 +11,12 @@ 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 diff --git a/utils/kamctl/kamdbctl b/utils/kamctl/kamdbctl index 4597afe09b2..ea772c02ecb 100755 --- a/utils/kamctl/kamdbctl +++ b/utils/kamctl/kamdbctl @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # control tool for maintaining Kamailio databases # @@ -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 resource files, if any