NoIssue: Run fixes

This commit is contained in:
2026-02-01 21:28:38 +01:00
parent 8f907324ca
commit e93f06784c
2 changed files with 2 additions and 18 deletions

17
run.sh
View File

@@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
shopt -s nullglob
jars=(libs/*.jar)
if (( ${#jars[@]} == 0 )); then
echo "ERROR: No JARs found in libs/" >&2
exit 1
fi
CLASSPATH=$(IFS=:; echo "${jars[*]}")
exec java \
-Dlog4j.configurationFile=conf/log4j2.xml \
-cp "$CLASSPATH" \
com.r35157.nenjim.hubd.impl.ref.Main

1
run.sh Symbolic link
View File

@@ -0,0 +1 @@
src/main/docker/run.sh

View File

@@ -12,6 +12,6 @@ fi
CLASSPATH=$(IFS=:; echo "${jars[*]}")
exec java \
-Dlog4j.configurationFile=/usr/local/software/nenjimhub/conf/log4j2.xml \
-Dlog4j.configurationFile=conf/log4j2.xml \
-cp "$CLASSPATH" \
com.r35157.nenjim.hubd.impl.ref.Main