ci: Use apt-get -y in production-upgrade test.

We currently configure ‘APT::Get::Assume-Yes’ in our custom Docker
image, but this is the only place we rely on it (outside of the
Dockerfile itself), and it’s better not to.

Also ‘apt-get remove && apt-get purge’ is the same as just ‘apt-get
purge’.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-07-13 17:26:51 -07:00
committed by Anders Kaseorg
parent ebb4eab0f9
commit db476bdc51

View File

@@ -16,8 +16,8 @@ set -x
# * For rabbitmq-server, we likely need to do this to work around the
# hostname changing on reboot causing RabbitMQ to not boot.
# * For supervisor, we don't understand why it doesn't start properly.
sudo apt-get remove rabbitmq-server supervisor && sudo apt-get purge rabbitmq-server supervisor
sudo apt-get install rabbitmq-server supervisor
sudo apt-get -y purge rabbitmq-server supervisor
sudo apt-get -y install rabbitmq-server supervisor
# Start the postgresql service.
sudo service postgresql start