mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	sharding: Make nginx shard map owned by zulip:zulip.
This will make it easier to manipulate in restart-server.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							970ff73c5f
						
					
				
				
					commit
					6249c2f970
				
			@@ -7,8 +7,8 @@ class zulip::tornado_sharding {
 | 
			
		||||
  # the sharding script afterwards and Puppet shouldn't overwrite them.
 | 
			
		||||
  file { '/etc/zulip/nginx_sharding_map.conf':
 | 
			
		||||
    ensure  => file,
 | 
			
		||||
    owner   => 'root',
 | 
			
		||||
    group   => 'root',
 | 
			
		||||
    owner   => 'zulip',
 | 
			
		||||
    group   => 'zulip',
 | 
			
		||||
    mode    => '0644',
 | 
			
		||||
    notify  => Service['nginx'],
 | 
			
		||||
    content => @(EOT),
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,7 @@ if ! [ -e /etc/zulip/nginx_sharding_map.conf.tmp ] || ! [ -e /etc/zulip/sharding
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
chown root:root /etc/zulip/nginx_sharding_map.conf.tmp
 | 
			
		||||
chown zulip:zulip /etc/zulip/nginx_sharding_map.conf.tmp
 | 
			
		||||
chmod 644 /etc/zulip/nginx_sharding_map.conf.tmp
 | 
			
		||||
chown zulip:zulip /etc/zulip/sharding.json.tmp
 | 
			
		||||
chmod 644 /etc/zulip/sharding.json.tmp
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user