2020-07-02 15:38:21 -07:00
|
|
|
#!/bin/bash
|
2022-01-02 19:21:21 -08:00
|
|
|
GDIR="/usr/lib/node_modules" # global install, default global install directory
|
2020-07-02 15:38:21 -07:00
|
|
|
DIR=${1:-$NODE_RED_USER_DIR}
|
2022-01-02 19:21:21 -08:00
|
|
|
[[ !$DIR ]] && echo using default user directory /data/node-red && DIR=/data/node-red
|
|
|
|
echo Starting Node Red with user instance directory $DIR
|
|
|
|
/usr/bin/node $GDIR/node-red/red.js --userDir $DIR
|