From 7dfae575c39e9bbb1085fe0b5887550370e9cfbb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 14 Jun 2018 20:32:11 -0300 Subject: Fix LOG_DIR variable --- kvmx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kvmx') diff --git a/kvmx b/kvmx index b91b6bd..c417ad8 100755 --- a/kvmx +++ b/kvmx @@ -1794,8 +1794,8 @@ function kvmx_shell { else if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then # Process command, nohup version, stdout and stderr are redirected to a file - nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 & - tail -F $LOGDIR/nohup + nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOG_DIR/nohup 2>&1 & + tail -F $LOG_DIR/nohup # Process command, disown version, stdout are preserved #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & @@ -1807,8 +1807,8 @@ function kvmx_shell { else if [ "${STDIN[0]}" == "up" ] || [ "${STDIN[0]}" == "start" ] || [ "${STDIN[0]}" == "restart" ]; then # Process command, nohup version - nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOGDIR/nohup 2>&1 & - tail -F $LOGDIR/nohup + nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} >> $LOG_DIR/nohup 2>&1 & + tail -F $LOG_DIR/nohup # Process command, disown version #$APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & -- cgit v1.2.3