summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-02-04 14:01:49 +0000
committerMatthew Sackman <matthew@lshift.net>2010-02-04 14:01:49 +0000
commit9e56819768d386260807ffaa6174d35080babe18 (patch)
tree7d69024d27fe1958bd63d701497e607289a190ec /packaging
parent2ce7e4b604f2750ee5031d67cee2d20a8f2f5a53 (diff)
downloadrabbitmq-server-git-9e56819768d386260807ffaa6174d35080babe18.tar.gz
Everything uses su except for macports which uses sudo. On OS X, man sudo suggests that -E is needed to preserve environment. Manually checked and indeed it is. Hence added -E to the one call of sudo in entire codebase
Diffstat (limited to 'packaging')
-rw-r--r--packaging/macports/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/macports/Makefile b/packaging/macports/Makefile
index 4db305eb58..243864e1f1 100644
--- a/packaging/macports/Makefile
+++ b/packaging/macports/Makefile
@@ -35,7 +35,7 @@ macports: dirs $(DEST)/Portfile
for f in rabbitmq-asroot-script-wrapper rabbitmq-script-wrapper ; do \
cp $(COMMON_DIR)/$$f $(DEST)/files ; \
done
- sed -i -e 's|@SU_RABBITMQ_SH_C@|sudo -u rabbitmq -H /bin/sh -c|' \
+ sed -i -e 's|@SU_RABBITMQ_SH_C@|sudo -E -u rabbitmq -H /bin/sh -c|' \
$(DEST)/files/rabbitmq-script-wrapper
cp patch-org.macports.rabbitmq-server.plist.diff $(DEST)/files