view installer.sh @ 69:333afcfd3f3a

added node_modules to project and fixed path to chronometer also added deps to installer script
author tzara <rc-web@kiben.net>
date Sat, 26 Oct 2013 14:12:50 +0100
parents 474c1ad1e811
children a1eacfae4fcf
line wrap: on
line source
#!/bin/sh
npm install sockets.io node-static requirejs
mkdir -p /usr/local/bin
cp -pa nodescore /usr/local/bin/

mkdir /usr/share/nodescore
cp -pa www *.js /usr/share/nodescore/
chown -R  rob:www-data /usr/share/nodescore/
cp -pa nodescored /etc/init.d/
chmod 755 /etc/init.d/nodescored
update-rc.d nodescored defaults