1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-24 22:00:09 +00:00
Tims-Chat/file/acp/be.bastelstu.chat.nodePush/bin/run.sh
2013-01-19 20:36:40 +01:00

18 lines
246 B
Bash

#!/bin/sh
cd `dirname $0`
if [ -d "bin" ]; then
cd "../"
fi
if [ "$(id -u)" -eq 0 ]; then
echo "You may not start nodePush as root!"
exit 1
fi
echo "Installing dependencies"
/usr/bin/env npm install
cd "../lib"
/usr/bin/env node server.js