From 4b532cb9ecaebf6e1f096145d462122ca76bddaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Mon, 16 Oct 2023 11:34:05 +0200 Subject: [PATCH] AMQ-9338: Use setenv instead of env to avoid POSIX conflict --- assembly/src/main/descriptors/unix-bin.xml | 2 +- assembly/src/release/bin/activemq | 6 +++--- assembly/src/release/bin/{env => setenv} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename assembly/src/release/bin/{env => setenv} (100%) diff --git a/assembly/src/main/descriptors/unix-bin.xml b/assembly/src/main/descriptors/unix-bin.xml index 6d7ccbc7c0..182e96dbcf 100644 --- a/assembly/src/main/descriptors/unix-bin.xml +++ b/assembly/src/main/descriptors/unix-bin.xml @@ -112,7 +112,7 @@ src/release - bin/env + bin/setenv 0755 0644 diff --git a/assembly/src/release/bin/activemq b/assembly/src/release/bin/activemq index aebc2a3a18..05af554c64 100755 --- a/assembly/src/release/bin/activemq +++ b/assembly/src/release/bin/activemq @@ -36,7 +36,7 @@ # for additional commandline arguments # # System variables for this script, like ACTIVEMQ_OPTS and ACTIVEMQ_OPTS_MEMORY, -# can be configured in 'env' script located in this directory. +# can be configured in 'setenv' script located in this directory. # # For more information on configuring the script, see http://activemq.apache.org/unix-shell-script.html # @@ -171,7 +171,7 @@ if ( basename $0 | grep "activemq-instance-" > /dev/null);then ACTIVEMQ_CONFIGS="/etc/default/activemq-instance-${INST} $HOME/.activemqrc-instance-${INST}" echo "INFO: Using alternative activemq configuration files: $ACTIVEMQ_CONFIGS" else - ACTIVEMQ_CONFIGS="/etc/default/activemq $HOME/.activemqrc $ACTIVEMQ_HOME/bin/env" + ACTIVEMQ_CONFIGS="/etc/default/activemq $HOME/.activemqrc $ACTIVEMQ_HOME/bin/setenv" fi # load activemq configuration @@ -667,7 +667,7 @@ Configuration of this script: The configuration of this script is read from the following files: $ACTIVEMQ_CONFIGS This script searches for the files in the listed order and reads the first available file. - Modify $ACTIVEMQ_BASE/bin/env or create a copy of that file on a suitable location. + Modify $ACTIVEMQ_BASE/bin/setenv or create a copy of that file on a suitable location. To use additional configurations for running multiple instances on the same operating system rename or symlink script to a name matching to activemq-instance-. This changes the configuration location to /etc/default/activemq-instance- and diff --git a/assembly/src/release/bin/env b/assembly/src/release/bin/setenv similarity index 100% rename from assembly/src/release/bin/env rename to assembly/src/release/bin/setenv