Commit 11aedc9c authored by Razvan Becheriu's avatar Razvan Becheriu Committed by Tomek Mrugalski
Browse files

fixed kea-admin dscsql lease-init script

parent 8cb4a578
......@@ -217,11 +217,11 @@ dscsql_init() {
exit 1
fi
COUNT=`echo $RESULT | grep $db_name | wc -w`
COUNT=`echo $RESULT | tr " " "\n" | grep $db_name | wc -w`
if [ $COUNT -gt 0 ]; then
# Let't start with a new line. cqlsh could have printed something out.
printf "\n"
log_error "Expected empty database $db_name, but there are $COUNT tables: \n$RESULT. Aborting."
log_error "Expected no database $db_name, but there are $COUNT databases: \n$RESULT. Aborting."
exit 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment