Merge pull request #1074 from jbonofre/AMQ-9338

AMQ-9338: Use setenv instead of env to avoid POSIX conflict
This commit is contained in:
JB Onofré 2023-10-21 06:48:00 +02:00 committed by GitHub
commit 5983fa244e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@
<directory>src/release</directory>
<outputDirectory></outputDirectory>
<includes>
<include>bin/env</include>
<include>bin/setenv</include>
</includes>
<directoryMode>0755</directoryMode>
<fileMode>0644</fileMode>

View File

@ -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-<INSTANCENAME>.
This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and