From b5bcff04e5ec66c73b85c8153be6e8f4e3ed2617 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 9 Sep 2020 14:37:35 -0700 Subject: [PATCH] sharding: Consistent mode for nginx sharding file. This disagreed between `tornado_sharding.pp` in puppet and `scripts/refresh-sharding-and-restart`. --- scripts/refresh-sharding-and-restart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/refresh-sharding-and-restart b/scripts/refresh-sharding-and-restart index a76806dee3..76996cddf3 100755 --- a/scripts/refresh-sharding-and-restart +++ b/scripts/refresh-sharding-and-restart @@ -5,7 +5,7 @@ set -e "$(dirname "$0")/zulip-puppet-apply" -f # The step above should have generated the config files, now we need to move them into place: chown root:root /etc/zulip/nginx_sharding.conf.tmp -chmod 640 /etc/zulip/nginx_sharding.conf.tmp +chmod 644 /etc/zulip/nginx_sharding.conf.tmp chown zulip:zulip /etc/zulip/sharding.json.tmp chmod 640 /etc/zulip/sharding.json.tmp mv /etc/zulip/nginx_sharding.conf.tmp /etc/zulip/nginx_sharding.conf