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

Fix #83 logs are now correctly stored under $UCOIN_HOME/$UCOIN_DATABASE folder

parent c78bf598
Branches
Tags
No related merge requests found
......@@ -38,8 +38,6 @@ ucoind() {
local test
local UCOIN_LOG_FILE
local UCOIN_ERR_FILE
UCOIN_LOG_FILE=$UCOIN_DATA_HOME/$UCOIN_DATABASE/ucoin.log
UCOIN_ERR_FILE=$UCOIN_DATA_HOME/$UCOIN_DATABASE/ucoin.err.log
UCOIN_DATABASE=$2
if [ -z $UCOIN_DATABASE ]; then
UCOIN_DATABASE="$UCOIN_DB"
......@@ -47,6 +45,8 @@ ucoind() {
if [ -z $UCOIN_DATABASE ]; then
UCOIN_DATABASE="ucoin_default"
fi
UCOIN_LOG_FILE=$UCOIN_DATA_HOME/$UCOIN_DATABASE/ucoin.log
UCOIN_ERR_FILE=$UCOIN_DATA_HOME/$UCOIN_DATABASE/ucoin.err.log
test=`$NODE $PM2 list | grep "$UCOIN_DATABASE.*online"`
if [ -z "$test" ]; then
echo $UCOIN_LOG_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment