6 lines
315 B
Bash
Executable File
6 lines
315 B
Bash
Executable File
#!/bin/bash
|
|
GDIR="/usr/lib/node_modules" # global install, default global install directory
|
|
DIR=${1:-$NODE_RED_USER_DIR}
|
|
[[ !$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 |