From 9d237e7bd68f43ae59b4bbc591ef1d7680918567 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 11 Jun 2019 13:30:15 +0200 Subject: [PATCH] Fix sudo installation on scaleway --- baseimage/initializeBaseUbuntuImage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/baseimage/initializeBaseUbuntuImage.sh b/baseimage/initializeBaseUbuntuImage.sh index dac457a8f..973502c24 100755 --- a/baseimage/initializeBaseUbuntuImage.sh +++ b/baseimage/initializeBaseUbuntuImage.sh @@ -46,13 +46,15 @@ apt-get -y install \ openssh-server \ pwgen \ resolvconf \ - sudo \ swaks \ tzdata \ unattended-upgrades \ unbound \ xfsprogs +# on some providers like scaleway the sudo file is changed and we want to keep the old one +apt-get -o Dpkg::Options::="--force-confold" install -y sudo + # this ensures that unattended upgades are enabled, if it was disabled during ubuntu install time (see #346) # debconf-set-selection of unattended-upgrades/enable_auto_updates + dpkg-reconfigure does not work cp /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades