Files
stubbfelnix/services/nexus-vm-opts.patch
2025-06-09 15:43:27 +02:00

13 lines
412 B
Diff

--- a/bin/nexus 2025-05-02 22:27:48.000000000 +0200
+++ b/bin/nexus 2025-06-09 14:59:58.617397105 +0200
@@ -139,7 +139,8 @@
cd "$HOME" || exit 1
vmoptions_val=""
-read_vmoptions "nexus.vmoptions"
+VM_OPTS=${VM_OPTS_FILE:-"nexus.vmoptions"}
+read_vmoptions "$VM_OPTS"
INSTALL4J_ADD_VM_PARAMS="$INSTALL4J_ADD_VM_PARAMS $vmoptions_val"
# deduce the chosen data directory and prepare log and tmp directories