diff options
| author | Emile Joubert <emile@rabbitmq.com> | 2011-04-04 13:38:41 +0100 |
|---|---|---|
| committer | Emile Joubert <emile@rabbitmq.com> | 2011-04-04 13:38:41 +0100 |
| commit | 1f531c85bcc5fd8dfcf4c4e1fdc1b3d706844070 (patch) | |
| tree | 5ce3253f7a0920a1f41760c132136c14a89c8cb2 /scripts | |
| parent | ab63e5874c27a9276ad191605aa8ab73898ce373 (diff) | |
| download | rabbitmq-server-git-1f531c85bcc5fd8dfcf4c4e1fdc1b3d706844070.tar.gz | |
Warn about config only if new config is absent
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rabbitmq-env | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index 3e17394981..a2ef8d3ceb 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -37,7 +37,8 @@ RABBITMQ_HOME="${SCRIPT_DIR}/.." NODENAME=rabbit@${HOSTNAME%%.*} # Load configuration from the rabbitmq.conf file -if [ -f /etc/rabbitmq/rabbitmq.conf ]; then +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" fi |
