mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 18:56:24 +00:00
Only try to copy the enter.sh if there is a /data directory.
This commit is contained in:
parent
4734f8e834
commit
0630d8051b
6
entry.sh
6
entry.sh
@ -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
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user