changed supervisor home to /opt

This commit is contained in:
Spyros Ligouras 2013-07-19 12:47:01 +03:00
parent 822bcc3a72
commit 2b391781d2
2 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,7 @@ Requires=network.target
After=network.target
[Service]
ExecStart=/home/haki/ewa-client-bootstrap/supervisor.js
ExecStart=/opt/ewa-client-bootstrap/supervisor.js
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
Restart=on-failure

View File

@ -18,12 +18,11 @@ pacman --noconfirm --sync --needed --quiet git nodejs openvpn yaourt
yaourt --noconfirm --sync heroku-toolbelt > /dev/null
# node app setup
cd /home/haki && git clone git@bitbucket.org:rulemotion/$REPO.git
cd /home/haki && chown -R haki:haki $REPO
cd /home/haki/$REPO && sudo -u haki npm install
cd /opt && git clone git@bitbucket.org:rulemotion/$REPO.git
cd /opt/$REPO && sudo -u haki npm install
# system service setup
cp /home/haki/$REPO/scripts/haki.service /etc/systemd/system/haki.service
cp /opt/$REPO/scripts/haki.service /etc/systemd/system/haki.service
systemctl enable haki
systemctl start haki