Mercurial > hg > rlgwebd
diff rlgwebd @ 141:1a156a7746a7
RLGWebD: use NODE_PATH to find modules.
author | John "Elwin" Edwards |
---|---|
date | Wed, 14 Aug 2013 08:04:36 -0700 |
parents | dcd07c1d846a |
children | 5483d413a45b |
line wrap: on
line diff
--- a/rlgwebd Mon Jul 22 07:51:53 2013 -0700 +++ b/rlgwebd Wed Aug 14 08:04:36 2013 -0700 @@ -1,9 +1,12 @@ #!/bin/sh +NODE_PATH=/usr/lib/node_modules LOGFILE=/var/local/rlgwebd/log CTLSOCKET=/var/local/rlgwebd/ctl RLGWEBDJS=./rlgwebd.js +export NODE_PATH + if [ $UID != 0 ] then echo "$0 needs to run as root." >&2