1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-11-01 14:20:07 +00:00
Tims-Chat/file/acp/be.bastelstu.wcf.chat.nodePush/bin/run.sh

18 lines
246 B
Bash
Raw Normal View History

2012-04-27 13:42:44 +00:00
#!/bin/sh
cd `dirname $0`
if [ -d "bin" ]; then
cd "../"
fi
if [ "$(id -u)" -eq 0 ]; then
2012-04-30 18:51:27 +00:00
echo "You may not start nodePush as root!"
2012-04-27 13:42:44 +00:00
exit 1
fi
echo "Installing dependencies"
2012-04-30 18:51:27 +00:00
/usr/bin/env npm install
2012-04-27 13:42:44 +00:00
cd "../lib"
/usr/bin/env node server.js