mirror of https://github.com/zulip/zulip.git
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:
parent
9ddc27f318
commit
5c734f7048
|
@ -45,7 +45,7 @@ RUN \
|
|||
&& 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 \
|
||||
&& 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)
|
||||
&& useradd -ms /bin/bash -u "$VAGRANT_UID" vagrant \
|
||||
&& mkdir -m 700 ~vagrant/.ssh \
|
||||
|
|
Loading…
Reference in New Issue