mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-16 23:38:52 +00:00
Don't depend on agent fwd
This commit is contained in:
parent
acfd491ba3
commit
5f7ac4af7f
@ -1,16 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
REPO=ewa-client-bootstrap
|
||||
|
||||
# system upgrade
|
||||
pacman --noconfirm --sync --refresh --sysupgrade --quiet
|
||||
|
||||
# user configuration
|
||||
useradd -m -G users,wheel -s /bin/bash haki
|
||||
|
||||
# sudo configuration
|
||||
pacman --noconfirm --sync --needed --quiet sudo
|
||||
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
|
||||
#echo "Defaults env_keep+=SSH_AUTH_SOCK" >> /etc/sudoers
|
||||
|
||||
# dependencies
|
||||
pacman --noconfirm --sync --needed --quiet git nodejs openvpn yaourt
|
||||
yaourt --noconfirm --sync heroku-toolbelt > /dev/null
|
||||
|
||||
cd /home/haki && sudo -u haki git clone git@bitbucket.org:rulemotion/ewa-client-bootstrap.git
|
||||
ln -s /home/haki/ewa-client-bootstrap/haki.service /etc/systemd/system/haki.service
|
||||
# node app setup
|
||||
cd /home/haki && git clone git@bitbucket.org:rulemotion/$REPO.git
|
||||
cd /home/haki && chown -R haki $REPO
|
||||
cd /home/haki/$REPO && sudo -u haki npm install
|
||||
|
||||
# system service setup
|
||||
ln -s /home/haki/$REPO/scripts/haki.service /etc/systemd/system/haki.service
|
||||
systemctl enable haki
|
||||
|
Loading…
x
Reference in New Issue
Block a user