diff options
| author | Steve Powell <steve@rabbitmq.com> | 2012-02-10 09:56:49 +0000 |
|---|---|---|
| committer | Steve Powell <steve@rabbitmq.com> | 2012-02-10 09:56:49 +0000 |
| commit | 105a18315f724503b12780c1f55d79826d69bb80 (patch) | |
| tree | 2e8f7320de2dba16f9a407c03c06ab5b5cc9a1a5 /scripts/rabbitmq-env | |
| parent | ca17b12b649de93da7bb811bf59558826bb12a3c (diff) | |
| download | rabbitmq-server-git-105a18315f724503b12780c1f55d79826d69bb80.tar.gz | |
Refactor generic-unix rabbitmq-sys for easy updatability;
simplify macports mods to generic-unix package;
make rabbitmq-env independent of package installation;
adjust rabbitmq-sys in base scripts to allow rabbitmq-env to work everywhere.
Diffstat (limited to 'scripts/rabbitmq-env')
| -rwxr-xr-x | scripts/rabbitmq-env | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index 060a9c8dcd..97d795b82f 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -36,7 +36,7 @@ RABBITMQ_HOME="${SCRIPT_DIR}/.." [ "x" = "x$HOSTNAME" ] && HOSTNAME=`env hostname` NODENAME=rabbit@${HOSTNAME%%.*} -## Set system default values for rabbitmq-env.conf variables to override +## Set system defaults if [ ! -f ${SCRIPT_DIR}/rabbitmq-sys ]; then echo -n "WARNING: system defaults are not available -- " echo "check the installation completed correctly." @@ -45,10 +45,10 @@ fi . ${SCRIPT_DIR}/rabbitmq-sys -## Get configuration variables from the rabbitmq-env.conf file -if [ -f /etc/rabbitmq/rabbitmq.conf ] && \ - [ ! -f /etc/rabbitmq/rabbitmq-env.conf ] ; then - echo -n "WARNING: ignoring /etc/rabbitmq/rabbitmq.conf -- " - echo "location has moved to /etc/rabbitmq/rabbitmq-env.conf" +## Get configuration variables from the configure environment file +if [ -f ${OLD_CONF_ENV_FILE} ] && \ + [ ! -f ${CONF_ENV_FILE} ] ; then + echo -n "WARNING: ignoring ${OLD_CONF_ENV_FILE} -- " + echo "location has moved to ${CONF_ENV_FILE}" fi -[ -f /etc/rabbitmq/rabbitmq-env.conf ] && . /etc/rabbitmq/rabbitmq-env.conf +[ -f ${CONF_ENV_FILE} ] && . ${CONF_ENV_FILE} |
