Moved scripts and made toast messages client side

This commit is contained in:
Nicolas A. Tonne
2015-04-16 14:09:45 +02:00
parent c8b2946116
commit 44b41b2386
9 changed files with 52 additions and 26 deletions

12
scripts/install.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
apt-get update
apt-get install -y npm
apt-get install -y nodejs
npm install -g forever
ln -s /usr/bin/nodejs /usr/bin/node
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/server
forever stopall
CMD="forever start -l /var/log/zoff.log -a --workingDir $DIR $DIR/server.js"
crontab -l | { cat; echo "@reboot" $CMD; } | crontab -
$CMD
echo $CMD