balena-supervisor/deps.sh

11 lines
228 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