utils/kamctl/kamctl.dbtext
7e4aadcc
 #
860c33c5
 # control tool for maintaining Kamailio
7e4aadcc
 #
 #===================================================================
 
67252029
 ##### ----------------------------------------------- #####
 ### load SQL base
 #
de1a4247
 if [ -f "$MYLIBDIR/kamctl.sqlbase" ]; then
 	. "$MYLIBDIR/kamctl.sqlbase"
67252029
 else
de1a4247
 	echo "Cannot load SQL core functions '$MYLIBDIR/kamctl.sqlbase' - exiting ..."
67252029
 	exit -1
387eb8a4
 fi
120e5db3
 
 if [ $TEST = "true" ]; then
4d780001
 	DBTEXT_PATH="$MYLIBDIR/dbtext/kamailio/"
120e5db3
 fi;
 
67252029
 # path to the dbtext database
 if [ -z "$DBTEXT_PATH" ] ; then
d83ec54b
 	if [ -z "$DB_PATH" ] ; then
 		DBTEXT_PATH="/usr/local/share/kamailio/dbtext/kamailio"
 	else
 		DBTEXT_PATH=$DB_PATH
 	fi
464a4d33
 fi
387eb8a4
 
67252029
 export DBTEXT_PATH
7e4aadcc
 
67252029
 DBCMD=${MYLIBDIR}/dbtextdb/dbtextdb.py
 DBROCMD=${MYLIBDIR}/dbtextdb/dbtextdb.py