summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2010-02-23 12:29:38 +0000
committerMatthew Sackman <matthew@lshift.net>2010-02-23 12:29:38 +0000
commitb2f98e644211f7e78523dfac833d4f38fe52c536 (patch)
treea41feee51411a2e02fb3692e043f85451c5d5d09
parent676ba194422f61cc1e1ad43c681977b5c569110a (diff)
downloadrabbitmq-server-bug22400.tar.gz
Switch to using su, not sudo. Given the command line is already quoted, this seems to work.bug22400
-rw-r--r--packaging/macports/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/macports/Makefile b/packaging/macports/Makefile
index d5633955..0ef7dd5e 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 -E -u rabbitmq -H /bin/sh -c|' \
+ sed -i -e 's|@SU_RABBITMQ_SH_C@|SHELL=/bin/sh su -m rabbitmq -c|' \
$(DEST)/files/rabbitmq-script-wrapper
cp patch-org.macports.rabbitmq-server.plist.diff $(DEST)/files
if [ -n "$(MACPORTS_USERHOST)" ] ; then \