1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00
Tims-Chat/file/acp/be.bastelstu.wcf.chat.serverPush/bin/run.sh
2012-04-27 15:42:44 +02:00

18 lines
240 B
Bash

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