Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

cloud9: Add npm install to c9 script to make sure all packages are installed. #236

Merged
merged 4 commits into from
Feb 5, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package/opt/hassbian/suites/cloud9.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ echo "Creating installation directory..."
mkdir /opt/c9sdk
chown homeassistant:homeassistant /opt/c9sdk

echo "Installing npm"
apt install -y npm
ludeeus marked this conversation as resolved.
Show resolved Hide resolved

echo "Changing to the homeassistant user"
sudo -u homeassistant -H /bin/bash << EOF
printf "Downloading and installing Cloud9 SDK...\\n"
Expand All @@ -37,6 +40,9 @@ sudo -u homeassistant -H /bin/bash << EOF
ln -s /home/homeassistant/.homeassistant/ /home/homeassistant/c9workspace/homeassistant
EOF

cd /opt/c9sdk || exit 1
npm install

echo "Copying Cloud9 service file..."
cp /opt/hassbian/suites/files/cloud9.service /etc/systemd/system/cloud9@homeassistant.service

Expand Down