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

View File

@ -4,7 +4,6 @@
"scripts": {
"preinstall": "bash deps.sh",
"postinstall": "bash postinstall.sh",
"prestart": "cp bin/enter.sh /data/enter.sh && chmod +x /data/enter.sh",
"start": "./entry.sh"
},
"dependencies": {