Sign in
Categories
Your Saved List Become a Channel Partner Sell in AWS Marketplace Amazon Web Services Home Help

The pre-neo4j.sh shell script has an error

  • By Jid
  • on 06/14/2019

In the file /etc/neo4j/pre-neo4j.sh
the script has an error and should be like this:

Original:

if [ $? -ne 0 || "$EXTERNAL_IP_ADDR" = "" ] ; then
echo "pre-neo4j.sh: Advertising internal IP since instance lacks external public IP"
export EXTERNAL_IP_ADDR=$INTERNAL_IP_ADDR
fi

Fixed version

if [[ $? -ne 0 || "$EXTERNAL_IP_ADDR" = "" ] ]; then
echo "pre-neo4j.sh: Advertising internal IP since instance lacks external public IP"
export EXTERNAL_IP_ADDR=$INTERNAL_IP_ADDR
fi


missing brackets.


There are no comments to display