|
|
@ -78,7 +78,7 @@ chmod +x /home/$USER/crond/playground-sync.sh |
|
|
|
read -r -d '' VAR <<EOF |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
sudo -H -u node /bin/bash -c 'cd /home/$USER/$REPO/swarmlab-app/src; npm install; npm cache clean --force;' |
|
|
|
su -c 'cd /home/node/playground-nodejs/swarmlab-app/src; npm install; npm cache clean --force;' - node |
|
|
|
|
|
|
|
EOF |
|
|
|
echo "$VAR" > /home/$USER/crond/playground-npm-install.sh |
|
|
@ -140,7 +140,7 @@ chmod -R 755 /home/$USER |
|
|
|
|
|
|
|
|
|
|
|
/home/$USER/crond/playground-sync.sh |
|
|
|
sudo -H -u node bash /home/$USER/crond/playground-npm-install.sh |
|
|
|
/home/$USER/crond/playground-npm-install.sh |
|
|
|
/home/$USER/crond/playground-start.sh |
|
|
|
|
|
|
|
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |
|
|
|