Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Cleanup unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ville Seppänen committed Mar 12, 2019
1 parent 7777fa0 commit 3bc1e3d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions files/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ nohup /root/node_exporter > /root/node_exporter.log 2>&1 &

if [ ${DEBUG_ENABLED} == "true" ]; then
echo "JDWP debugging enabled..."
STANDALONE_DEBUG_PARAMS=" -agentlib:jdwp=transport=dt_socket,address=*:1233,server=y,suspend=n"
DEBUG_PARAMS=" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1233"
DEBUG_PARAMS=" -agentlib:jdwp=transport=dt_socket,address=*:1233,server=y,suspend=n"
else
echo "JDWP debugging disabled..."
STANDALONE_DEBUG_PARAMS=""
DEBUG_PARAMS=""
fi

Expand Down Expand Up @@ -125,7 +123,7 @@ if [ -f "${STANDALONE_JAR}" ]; then
JAVA_OPTS="$JAVA_OPTS -D${NAME}.properties=${HOME}/oph-configuration/${NAME}.properties"
JAVA_OPTS="$JAVA_OPTS -javaagent:/root/jmx_prometheus_javaagent.jar=1134:/root/prometheus.yaml"
JAVA_OPTS="$JAVA_OPTS ${SECRET_JAVA_OPTS}"
JAVA_OPTS="$JAVA_OPTS ${STANDALONE_DEBUG_PARAMS}"
JAVA_OPTS="$JAVA_OPTS ${DEBUG_PARAMS}"
echo "java ${JAVA_OPTS} -jar ${STANDALONE_JAR}" > /root/java-cmd.txt
java ${JAVA_OPTS} -jar ${STANDALONE_JAR}
else
Expand Down

0 comments on commit 3bc1e3d

Please sign in to comment.