summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2018-12-29 11:41:47 +0100
committerFrancis Dupont <fdupont@isc.org>2019-01-29 08:35:39 +0100
commit798cfefb0febff44a22c6ac29f22201b7d1d7df2 (patch)
treee365981fa62a6797f6eec54a378a9252267cf3e6 /tools
parent[#416,!213]radius docs: changed secret to sekret (diff)
downloadkea-798cfefb0febff44a22c6ac29f22201b7d1d7df2.tar.xz
kea-798cfefb0febff44a22c6ac29f22201b7d1d7df2.zip
[111-configure-options-with-cql-not-working-properly] Added check of existance by the config script
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cql_config15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/cql_config b/tools/cql_config
index a3fccd83b7..8fad4295a3 100755
--- a/tools/cql_config
+++ b/tools/cql_config
@@ -11,14 +11,14 @@ fi
if ! [ -f ${DIR}/cql_config_defines.sh ] || ! [ -x ${DIR}/cql_config_defines.sh ]
then
echo "missing path configuration file for DataStax Cassandra (cql_config_defines.sh)"
- exit 0
+ exit 1
fi
source ${DIR}/cql_config_defines.sh
if [ $# -ne 1 ] && [ $# -ne 2 ]
then
echo "run: \`$0 --help\` for more help"
- exit 0
+ exit 1
fi
if [ $1 == "--help" ]
then
@@ -34,6 +34,8 @@ then
echo " get lib path"
echo "--modversion"
echo " get version"
+ echo "--print-errors"
+ echo " check existence"
echo "libraries:"
echo " cassandra"
echo " cassandra_static"
@@ -41,12 +43,12 @@ then
else if [ $# -ne 2 ]
then
echo "run: \`$0 --help\` for more help"
- exit 0
+ exit 1
else if [ $2 != "cassandra" ] && [ $2 != "cassandra_static" ]
then
echo "library $2 not supported"
echo "run: \`$0 --help\` for more help"
- exit 0
+ exit 1
else
cql_lib=$2
fi
@@ -74,5 +76,10 @@ then
echo "${MAJOR}.${MINOR}.${PATCH}"
exit 0
fi
+if [ $1 == "--print-errors" ]
+then
+ exit 0
+fi
echo "wrong parameter"
echo "run: \`$0 --help\` for more help"
+exit 1