From 8f381b641551ace3d5ce5f51fcaa5890aa80664d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Charaoui?= Date: Sun, 12 Feb 2023 12:13:07 -0500 Subject: [PATCH] ensure noninteractive mode for debconf --- Vagrantfile | 2 ++ test/test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 1de10f8..6ec2e3e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -17,6 +17,7 @@ Vagrant.configure("2") do |config| remote.vm.hostname = "bntest1" remote.vm.network "private_network", ip: "192.168.181.5" remote.vm.provision "shell", inline: <<-SHELL + export DEBIAN_FRONTEND=noninteractive echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen locale-gen apt-get update @@ -36,6 +37,7 @@ Vagrant.configure("2") do |config| local.vm.hostname = "bntest0" local.vm.network "private_network", ip: "192.168.181.4" local.vm.provision "shell", inline: <<-SHELL + export DEBIAN_FRONTEND=noninteractive echo "root: vagrant" >> /etc/aliases echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen locale-gen diff --git a/test/test.sh b/test/test.sh index 412b7f7..cb9ed04 100755 --- a/test/test.sh +++ b/test/test.sh @@ -24,7 +24,7 @@ if [ ! "$(which backupninja)" ]; then fi # Install basic test dependencies -apt-get -qq install bats mailutils faketime crudini +DEBIAN_FRONTEND=noninteractive apt install -y bats mailutils faketime crudini # Create a temporary base directory TMPDIR=$(mktemp -t -d bntest.XXXXXX)