diff --git a/php55/root/outrigger-key.sh b/php55/root/outrigger-key.sh index 03346d3..cbcffe4 100755 --- a/php55/root/outrigger-key.sh +++ b/php55/root/outrigger-key.sh @@ -3,9 +3,10 @@ KEY_BASE=/root/.ssh KEY_FILE=$KEY_BASE/outrigger.key -# First check to see if a volume mounted keyfile with a specific name exists -# If that file doesn't exit, was the key passed in via an environment variable? -if [ -e $KEY_FILE ]; then +# First check to see if a volume mounted keyfile with a specific name exists. +# If the source on a bind mount does not exist it will be created as an empty directory. +if [ -e $KEY_FILE ] && [ ! -d $KEY_FILE ] +then echo "KEY_FILE found. Setting up key..." diff --git a/php56/root/outrigger-key.sh b/php56/root/outrigger-key.sh index 03346d3..cbcffe4 100755 --- a/php56/root/outrigger-key.sh +++ b/php56/root/outrigger-key.sh @@ -3,9 +3,10 @@ KEY_BASE=/root/.ssh KEY_FILE=$KEY_BASE/outrigger.key -# First check to see if a volume mounted keyfile with a specific name exists -# If that file doesn't exit, was the key passed in via an environment variable? -if [ -e $KEY_FILE ]; then +# First check to see if a volume mounted keyfile with a specific name exists. +# If the source on a bind mount does not exist it will be created as an empty directory. +if [ -e $KEY_FILE ] && [ ! -d $KEY_FILE ] +then echo "KEY_FILE found. Setting up key..." diff --git a/php70/root/outrigger-key.sh b/php70/root/outrigger-key.sh index 03346d3..cbcffe4 100755 --- a/php70/root/outrigger-key.sh +++ b/php70/root/outrigger-key.sh @@ -3,9 +3,10 @@ KEY_BASE=/root/.ssh KEY_FILE=$KEY_BASE/outrigger.key -# First check to see if a volume mounted keyfile with a specific name exists -# If that file doesn't exit, was the key passed in via an environment variable? -if [ -e $KEY_FILE ]; then +# First check to see if a volume mounted keyfile with a specific name exists. +# If the source on a bind mount does not exist it will be created as an empty directory. +if [ -e $KEY_FILE ] && [ ! -d $KEY_FILE ] +then echo "KEY_FILE found. Setting up key..." diff --git a/php71/root/outrigger-key.sh b/php71/root/outrigger-key.sh index 03346d3..cbcffe4 100755 --- a/php71/root/outrigger-key.sh +++ b/php71/root/outrigger-key.sh @@ -3,9 +3,10 @@ KEY_BASE=/root/.ssh KEY_FILE=$KEY_BASE/outrigger.key -# First check to see if a volume mounted keyfile with a specific name exists -# If that file doesn't exit, was the key passed in via an environment variable? -if [ -e $KEY_FILE ]; then +# First check to see if a volume mounted keyfile with a specific name exists. +# If the source on a bind mount does not exist it will be created as an empty directory. +if [ -e $KEY_FILE ] && [ ! -d $KEY_FILE ] +then echo "KEY_FILE found. Setting up key..."