mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	dev-vagrant-docker: Clear redis-server ExecStart before overriding it.
Real systemd requires this. docker-systemctl-replacement currently doesn’t but maybe it will later. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							9ddc27f318
						
					
				
				
					commit
					5c734f7048
				
			@@ -45,7 +45,7 @@ RUN \
 | 
				
			|||||||
    && dpkg-divert --add --rename /etc/default/redis-server \
 | 
					    && dpkg-divert --add --rename /etc/default/redis-server \
 | 
				
			||||||
    && printf 'ULIMIT=65536\nDAEMON_ARGS="/etc/redis/redis.conf --bind 127.0.0.1"\n' > /etc/default/redis-server \
 | 
					    && printf 'ULIMIT=65536\nDAEMON_ARGS="/etc/redis/redis.conf --bind 127.0.0.1"\n' > /etc/default/redis-server \
 | 
				
			||||||
    && mkdir /etc/systemd/system/redis-server.service.d \
 | 
					    && mkdir /etc/systemd/system/redis-server.service.d \
 | 
				
			||||||
    && printf '[Service]\nExecStart=/usr/bin/redis-server /etc/redis/redis.conf --bind 127.0.0.1\n' > /etc/systemd/system/redis-server.service.d/override.conf \
 | 
					    && printf '[Service]\nExecStart=\nExecStart=/usr/bin/redis-server /etc/redis/redis.conf --bind 127.0.0.1\n' > /etc/systemd/system/redis-server.service.d/override.conf \
 | 
				
			||||||
    # Set up the vagrant user and its SSH key (globally public)
 | 
					    # Set up the vagrant user and its SSH key (globally public)
 | 
				
			||||||
    && useradd -ms /bin/bash -u "$VAGRANT_UID" vagrant \
 | 
					    && useradd -ms /bin/bash -u "$VAGRANT_UID" vagrant \
 | 
				
			||||||
    && mkdir -m 700 ~vagrant/.ssh \
 | 
					    && mkdir -m 700 ~vagrant/.ssh \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user