balena-supervisor/deps.sh

15 lines
319 B
Bash
Raw Normal View History

set -o errexit
set -o pipefail
2014-08-01 15:20:58 +00:00
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
2014-06-09 22:48:42 +00:00
# System dependencies
2014-07-29 14:22:17 +00:00
apt-get -q update
2014-08-04 11:10:36 +00:00
apt-get install -qqy openvpn libsqlite3-dev socat