mirror of
https://github.com/metabrainz/musicbrainz-server.git
synced 2025-03-14 10:15:22 +00:00
This was needed to work around the fact that rabbitmqctl must be run as the rabbitmq user or root. Instead, just allow the musicbrainz user to use sudo.
9 lines
269 B
Bash
Executable File
9 lines
269 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
VHOST=${1:-/sir}
|
|
|
|
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.delete
|
|
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.failed
|
|
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.index
|
|
sudo -n rabbitmqctl purge_queue -p "$VHOST" search.retry
|