diff --git a/custom_zulip_files/README.custom_zulip_files.md b/custom_zulip_files/README.custom_zulip_files.md new file mode 100644 index 0000000..07d1d45 --- /dev/null +++ b/custom_zulip_files/README.custom_zulip_files.md @@ -0,0 +1,10 @@ +The custom_zulip_files mechanism allows you to test edits to Zulip +before making changes in the upstream repo. It works by copying the +contents of this directory on top of the main zulip/zulip checkout as +part of the Docker build process. + +As an example, if you want to test a change to +`scripts/setup/generate-self-signed-cert`, you would grab a copy of +the script from zulip/zulip, place it at +`custom_zulip_files/scripts/setup/generate-self-signed-cert`, make +your local edits, and then run `docker-compose build`. diff --git a/custom_zulip_files/scripts/setup/configure-rabbitmq b/custom_zulip_files/scripts/setup/configure-rabbitmq deleted file mode 100755 index a6ed61c..0000000 --- a/custom_zulip_files/scripts/setup/configure-rabbitmq +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash -# -# Delete the "guest" default user and replace it with a Zulip user -# with a real password -set -e -set -x - -RABBITMQ_HOST=$("$(dirname "$0")/../get-django-setting" RABBITMQ_HOST) -RABBITMQ_USERNAME=$("$(dirname "$0")/../get-django-setting" RABBITMQ_USERNAME) -RABBITMQ_PASSWORD=$("$(dirname "$0")/../get-django-setting" RABBITMQ_PASSWORD) -sudo rabbitmqctl -n "$RABBITMQ_HOST" delete_user "$RABBITMQ_USERNAME" || true -sudo rabbitmqctl -n "$RABBITMQ_HOST" delete_user zulip || true -sudo rabbitmqctl -n "$RABBITMQ_HOST" delete_user guest || true -sudo rabbitmqctl -n "$RABBITMQ_HOST" add_user "$RABBITMQ_USERNAME" "$RABBITMQ_PASSWORD" -sudo rabbitmqctl -n "$RABBITMQ_HOST" set_user_tags "$RABBITMQ_USERNAME" administrator -sudo rabbitmqctl -n "$RABBITMQ_HOST" set_permissions -p / "$RABBITMQ_USERNAME" '.*' '.*' '.*'