From 8e68d163a80ed785878abda5f2bedcd17ed9529c Mon Sep 17 00:00:00 2001 From: Pierre Blanc Date: Fri, 19 Jan 2018 16:40:29 -0500 Subject: [PATCH] Unable to build cassandra images A wrong comparison option is used to test the existence of variables. This issue block the build for cassandra image. Closes-bug: #1744501 Change-Id: I8f801c78a260bb82b78a9ce3275b264b7acd1c11 --- .../files/elements/ubuntu-cassandra/install.d/10-cassandra | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/scripts/files/elements/ubuntu-cassandra/install.d/10-cassandra b/integration/scripts/files/elements/ubuntu-cassandra/install.d/10-cassandra index 14a6e900ca..2430715608 100755 --- a/integration/scripts/files/elements/ubuntu-cassandra/install.d/10-cassandra +++ b/integration/scripts/files/elements/ubuntu-cassandra/install.d/10-cassandra @@ -4,12 +4,12 @@ set -ex set -o xtrace # Set CASSANDRA_JAVA to override which release of Java to use, defaults to 8 -if [ ! -z "$CASSANDRA_JAVA" ]; then CASSANDRA_JAVA=8; fi +if [ -z "$CASSANDRA_JAVA" ]; then CASSANDRA_JAVA=8; fi # Set CASSANDRA_RELEASE to override which casandra release to use, defaults to 311x # For current releases supported, see http://cassandra.apache.org/download/ or # http://dl.bintray.com/apache/cassandra/dists/ -if [ ! -z "$CASSANDRA_RELEASE" ]; then CASSANDRA_RELEASE=311x; fi +if [ -z "$CASSANDRA_RELEASE" ]; then CASSANDRA_RELEASE=311x; fi export DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated install -qy curl