|
@ -78,7 +78,7 @@ chmod +x /home/$USER/crond/playground-sync.sh |
|
|
read -r -d '' VAR <<EOF |
|
|
read -r -d '' VAR <<EOF |
|
|
#!/bin/bash |
|
|
#!/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 |
|
|
EOF |
|
|
echo "$VAR" > /home/$USER/crond/playground-npm-install.sh |
|
|
echo "$VAR" > /home/$USER/crond/playground-npm-install.sh |
|
@ -140,7 +140,7 @@ chmod -R 755 /home/$USER |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/home/$USER/crond/playground-sync.sh |
|
|
/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 |
|
|
/home/$USER/crond/playground-start.sh |
|
|
|
|
|
|
|
|
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |
|
|
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf |
|
|