summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2009-11-11 23:38:43 +0000
committerDavid Wragg <dpw@lshift.net>2009-11-11 23:38:43 +0000
commit0e5c73726cc696a5c30a4d8f7af887ab9b3d9121 (patch)
treeec06c2e7ac91243c23427455b470534622b82fa8 /packaging
parente9b49a380c45fca26dbe6a8ff58cf29cbc9e795b (diff)
parent70af4f4eab59a0f166a7be60a11cd40d23edce20 (diff)
downloadrabbitmq-server-git-0e5c73726cc696a5c30a4d8f7af887ab9b3d9121.tar.gz
Merge bug21928 into default
Diffstat (limited to 'packaging')
-rw-r--r--packaging/common/rabbitmq-asroot-script-wrapper14
1 files changed, 2 insertions, 12 deletions
diff --git a/packaging/common/rabbitmq-asroot-script-wrapper b/packaging/common/rabbitmq-asroot-script-wrapper
index 1733d3f183..ee5947b66c 100644
--- a/packaging/common/rabbitmq-asroot-script-wrapper
+++ b/packaging/common/rabbitmq-asroot-script-wrapper
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
## The contents of this file are subject to the Mozilla Public License
## Version 1.1 (the "License"); you may not use this file except in
## compliance with the License. You may obtain a copy of the License at
@@ -30,22 +30,12 @@
## Contributor(s): ______________________________________.
##
-# Escape spaces and quotes, because shell is revolting.
-for arg in "$@" ; do
- # Escape quotes in parameters, so that they're passed through cleanly.
- arg=$(sed -e 's/"/\\"/g' <<-END
- $arg
- END
- )
- CMDLINE="${CMDLINE} \"${arg}\""
-done
-
cd /var/lib/rabbitmq
SCRIPT=`basename $0`
if [ `id -u` = 0 ] ; then
- /usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}
+ /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
else
echo
echo "Only root should run ${SCRIPT}"