diff options
author | Matthew Sackman <matthew@lshift.net> | 2010-02-04 14:01:49 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2010-02-04 14:01:49 +0000 |
commit | ded6807702597f863857e72e38ffeb34e016fd46 (patch) | |
tree | 7d69024d27fe1958bd63d701497e607289a190ec | |
parent | 30aa0f6084dd0a78f9ef196bc76d5302b269b7bc (diff) | |
download | rabbitmq-server-bug22259.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 codebasebug22259
-rw-r--r-- | packaging/macports/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/macports/Makefile b/packaging/macports/Makefile index 4db305eb..243864e1 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 |