Only try to copy the enter.sh if there is a /data directory.

This commit is contained in:
Pagan Gazzard
2014-09-20 00:53:06 +01:00
committed by Pablo Carranza Vélez
parent 4734f8e834
commit 0630d8051b
2 changed files with 6 additions and 1 deletions

View File

@ -9,4 +9,10 @@ set -e
cd /app
set DATA_DIRECTORY = /data
if [ -d "$DATA_DIRECTORY" ]; then
cp bin/enter.sh $DATA_DIRECTORY/enter.sh
chmod +x $DATA_DIRECTORY/enter.sh
fi
exec node src/supervisor.js