mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-03-11 06:54:17 +00:00
changed supervisor home to /opt
This commit is contained in:
parent
822bcc3a72
commit
2b391781d2
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user