Skip to content

Commit

Permalink
Change log dir to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan committed Apr 4, 2017
1 parent b7dddad commit 35c8090
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions installers/go-agent/release/agent.sh
Expand Up @@ -115,12 +115,14 @@ if [ "$PRODUCTION_MODE" == "Y" ]; then
if [ -d /var/log/${SERVICE_NAME} ]; then
LOG_DIR=/var/log/${SERVICE_NAME}
else
LOG_DIR=$AGENT_WORK_DIR
LOG_DIR=$AGENT_WORK_DIR/logs
fi
else
LOG_DIR=$AGENT_WORK_DIR
LOG_DIR=$AGENT_WORK_DIR/logs
fi

mkdir -p "${LOG_DIR}"

STDOUT_LOG_FILE=$LOG_DIR/${SERVICE_NAME}-bootstrapper.out.log

if [ "$PID_FILE" ]; then
Expand Down

0 comments on commit 35c8090

Please sign in to comment.