Skip to content

Commit

Permalink
Merge pull request awslabs#437 from emirot/patch-1
Browse files Browse the repository at this point in the history
Update run-analyze-vacuum-utility.sh
  • Loading branch information
IanMeyers authored Apr 12, 2019
2 parents 0ca2fc7 + c86243d commit a3c67d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bin/run-analyze-vacuum-utility.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ BLACKLISTED_TABLES=${BLACKLISTED_TABLES:-}
OUTPUT_FILE=${OUTPUT_FILE:-}
QUERY_GROUP=${QUERY_GROUP:-}

if [ "${DB}" == "" ]; then echo "Environment Var 'DB' must be defined"
elif [ "${DB_USER}" == "" ]; then echo "Environment Var 'DB_USER' must be defined"
elif [ "${DB_PWD}" == "" ]; then echo "Environment Var 'DB_PWD' must be defined"
elif [ "${DB_HOST}" == "" ]; then echo "Environment Var 'DB_HOST' must be defined"
if [ "${DB}" == "" ]; then echo "Environment Var 'DB' must be defined"; exit 1
elif [ "${DB_USER}" == "" ]; then echo "Environment Var 'DB_USER' must be defined"; exit 1
elif [ "${DB_PWD}" == "" ]; then echo "Environment Var 'DB_PWD' must be defined"; exit 1
elif [ "${DB_HOST}" == "" ]; then echo "Environment Var 'DB_HOST' must be defined"; exit 1
else
if [ "${DB_CONN_OPTS}" != "" ]; then DB_CONN_OPTS_CMD="--db-conn-opts ${DB_CONN_OPTS}"; fi
if [ "${TABLE_NAME}" != "" ]; then TABLE_NAME_CMD="--table-name ${TABLE_NAME}"; fi
Expand Down Expand Up @@ -74,4 +74,4 @@ else
--suppress-cloudwatch ${SUPPRESS_CLOUDWATCH} \
${DB_CONN_OPTS_CMD} ${TABLE_NAME_CMD} ${BLACKLISTED_TABLES_CMD} ${OUTPUT_FILE_CMD} ${QUERY_GROUP_CMD}
echo "done"
fi
fi

0 comments on commit a3c67d6

Please sign in to comment.