Skip to content
Snippets Groups Projects
Commit 8eb9d69f authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix #251 Nodejs was required in PATH

parent 51635b16
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,10 @@ ucoind() {
if [ -z $UCOIN_DATABASE ]; then
UCOIN_DATABASE="ucoin_default"
fi
test=`$PM2 list | grep "$UCOIN_DATABASE.*online"`
test=`$NODE $PM2 list | grep "$UCOIN_DATABASE.*online"`
if [ -z "$test" ]; then
echo $UCOIN_LOG_FILE
$PM2 start -f "$UCOIN_DIR/bin/ucoind" --name "$UCOIN_DATABASE" --interpreter="$NODE" --node-args="--harmony" --log $UCOIN_LOG_FILE --error $UCOIN_ERR_FILE --merge-logs -- start --mdb "$UCOIN_DATABASE" --httplogs 2>/dev/null
$NODE $PM2 start -f "$UCOIN_DIR/bin/ucoind" --name "$UCOIN_DATABASE" --interpreter="$NODE" --node-args="--harmony" --log $UCOIN_LOG_FILE --error $UCOIN_ERR_FILE --merge-logs -- start --mdb "$UCOIN_DATABASE" --httplogs 2>/dev/null
echo "uCoin with DB '$UCOIN_DATABASE' started. Use 'ucoind logs' to see interactive logs."
else
echo 1>&2 "uCoin '$UCOIN_DATABASE' already started."
......@@ -70,11 +70,11 @@ ucoind() {
if [ -z $UCOIN_DATABASE ]; then
UCOIN_DATABASE="ucoin_default"
fi
$PM2 $1 $UCOIN_DATABASE
$NODE $PM2 $1 $UCOIN_DATABASE
;;
delete-all)
$PM2 delete all
$NODE $PM2 delete all
;;
#---------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment