summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimc <timc@afallen.home>2009-06-10 18:27:53 +0100
committertimc <timc@afallen.home>2009-06-10 18:27:53 +0100
commit493bf9aefee4bd18b36a74b346d18c289e7bad70 (patch)
tree5194d4c81d0920e7bdc88f475b2e8de3c8d6c6bb
parent6693528f7188a3751be2c0fcaf4541151b0f2110 (diff)
downloadrabbitmq-server-493bf9aefee4bd18b36a74b346d18c289e7bad70.tar.gz
Removed default shell, changed wrapper to work without default shell
-rw-r--r--packaging/macports/net/rabbitmq-server/Portfile2
-rw-r--r--packaging/macports/net/rabbitmq-server/files/rabbitmq-script-wrapper2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/macports/net/rabbitmq-server/Portfile b/packaging/macports/net/rabbitmq-server/Portfile
index 0032eb5a..7fb31ad6 100644
--- a/packaging/macports/net/rabbitmq-server/Portfile
+++ b/packaging/macports/net/rabbitmq-server/Portfile
@@ -52,7 +52,7 @@ destroot.keepdirs \
pre-destroot {
addgroup ${servergroup}
- adduser ${serveruser} gid=[existsgroup ${servergroup}] realname=RabbitMQ\ Server home=${serverhome} shell=/bin/bash
+ adduser ${serveruser} gid=[existsgroup ${servergroup}] realname=RabbitMQ\ Server home=${serverhome}
}
post-destroot {
diff --git a/packaging/macports/net/rabbitmq-server/files/rabbitmq-script-wrapper b/packaging/macports/net/rabbitmq-server/files/rabbitmq-script-wrapper
index 72f52a84..b806049c 100644
--- a/packaging/macports/net/rabbitmq-server/files/rabbitmq-script-wrapper
+++ b/packaging/macports/net/rabbitmq-server/files/rabbitmq-script-wrapper
@@ -14,7 +14,7 @@ cd /var/lib/rabbitmq
SCRIPT=`basename $0`
if [ `id -u` = 0 ] ; then
- su rabbitmq -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
+ sudo -u rabbitmq -H /usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}
else
/usr/lib/rabbitmq/bin/${SCRIPT}
echo -e "\nOnly root should run ${SCRIPT}\n"