mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
19 lines
289 B
Bash
Executable File
19 lines
289 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
[ -d /dev/net ] ||
|
|
mkdir -p /dev/net
|
|
[ -c /dev/net/tun ] ||
|
|
mknod /dev/net/tun c 10 200
|
|
|
|
cd /app
|
|
|
|
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
|