- Security vulnerability fix - Bug fixes See full release notes: https://github.com/rabbitmq/rabbitmq-server/releases/tag/rabbitmq_v3_6_6
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
$NetBSD: patch-deps_rabbit_scripts_rabbitmq-env,v 1.1 2016/12/02 11:00:39 fhajny Exp $
|
|
|
|
Remove cumbersome symlink handling, we know where stuff is.
|
|
|
|
--- deps/rabbit/scripts/rabbitmq-env.orig 2015-11-12 16:42:49.000000000 +0000
|
|
+++ deps/rabbit/scripts/rabbitmq-env
|
|
@@ -20,29 +20,7 @@ if [ "$RABBITMQ_ENV_LOADED" = 1 ]; then
|
|
fi
|
|
|
|
if [ -z "$RABBITMQ_SCRIPTS_DIR" ]; then
|
|
- # We set +e here since since our test for "readlink -f" below needs to
|
|
- # be able to fail.
|
|
- set +e
|
|
- # Determine where this script is really located (if this script is
|
|
- # invoked from another script, this is the location of the caller)
|
|
- SCRIPT_PATH="$0"
|
|
- while [ -h "$SCRIPT_PATH" ] ; do
|
|
- # Determine if readlink -f is supported at all. TODO clean this up.
|
|
- FULL_PATH=`readlink -f $SCRIPT_PATH 2>/dev/null`
|
|
- if [ "$?" != "0" ]; then
|
|
- REL_PATH=`readlink $SCRIPT_PATH`
|
|
- if expr "$REL_PATH" : '/.*' > /dev/null; then
|
|
- SCRIPT_PATH="$REL_PATH"
|
|
- else
|
|
- SCRIPT_PATH="`dirname "$SCRIPT_PATH"`/$REL_PATH"
|
|
- fi
|
|
- else
|
|
- SCRIPT_PATH=$FULL_PATH
|
|
- fi
|
|
- done
|
|
- set -e
|
|
-
|
|
- RABBITMQ_SCRIPTS_DIR=`dirname $SCRIPT_PATH`
|
|
+ RABBITMQ_SCRIPTS_DIR="@RABBITMQ_HOME@/sbin"
|
|
fi
|
|
|
|
rmq_realpath() {
|