mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
15 lines
319 B
Bash
15 lines
319 B
Bash
set -o errexit
|
|
set -o pipefail
|
|
|
|
if [ $NODE_ENV == 'production' ]; then
|
|
# Deploy key for private npm modules
|
|
mkdir -p /root/.ssh
|
|
cp deploy_key /root/.ssh/id_rsa
|
|
chmod 400 /root/.ssh/id_rsa
|
|
cp ssh_config /root/.ssh/config
|
|
fi
|
|
|
|
# System dependencies
|
|
apt-get -q update
|
|
apt-get install -qqy openvpn libsqlite3-dev socat
|