summaryrefslogtreecommitdiff
path: root/packaging/debs/Debian/debian/rules
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2009-02-04 01:02:39 +0000
committerHubert Plociniczak <hubert@lshift.net>2009-02-04 01:02:39 +0000
commit379e9b437720d352ae3171aaa8e2b338bdcd4e46 (patch)
tree0b6e793eb7d3b0a7a118682ba4cc1f9adb6376f7 /packaging/debs/Debian/debian/rules
parentce3787ff42a492406b681c52eddc89e588f1111d (diff)
downloadrabbitmq-server-379e9b437720d352ae3171aaa8e2b338bdcd4e46.tar.gz
Provide common wrapper script that is used by all commands and requires root permissions to function normally.
Also added PATH variable in init.d and use new wrappers.
Diffstat (limited to 'packaging/debs/Debian/debian/rules')
-rw-r--r--packaging/debs/Debian/debian/rules5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/debs/Debian/debian/rules b/packaging/debs/Debian/debian/rules
index 908ec481..31904851 100644
--- a/packaging/debs/Debian/debian/rules
+++ b/packaging/debs/Debian/debian/rules
@@ -14,5 +14,6 @@ DOCDIR=$(DEB_DESTDIR)usr/share/doc/rabbitmq-server/
install/rabbitmq-server::
mkdir -p $(DOCDIR)
rm $(RABBIT_LIB)LICENSE*
- cp debian/rabbitmqctl_wrapper $(DEB_DESTDIR)usr/sbin/rabbitmqctl
- chmod a+x $(DEB_DESTDIR)usr/sbin/rabbitmqctl
+ for script in rabbitmqctl rabbitmq-server rabbitmq-multi; do \
+ install -p -D -m 0755 debian/rabbitmq-script-wrapper $(DEB_DESTDIR)usr/sbin/$$script; \
+ done