Skip to content

Commit

Permalink
fix: debconf
Browse files Browse the repository at this point in the history
  • Loading branch information
aeimer committed Oct 25, 2023
1 parent a5be36a commit ae63551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci-scripts/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ fi

# Install needed packages
echo "Installing packages with apt: ${aptGetInstallPackages[*]}"
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install apt requirements
if [[ "$runnerType" == "gitlab" ]]; then
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
apt-get update
apt-get -qy install "${aptGetInstallPackages[*]}"
elif [[ "$runnerType" == "github" ]]; then
sudo echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
sudo apt-get -q update
sudo apt-get -qy install "${aptGetInstallPackages[*]}"
fi
Expand All @@ -36,4 +37,3 @@ wget -q -O yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_
chmod +x yq
test "$runnerType" = "gitlab" && mv yq /usr/bin/yq
test "$runnerType" = "github" && sudo mv yq /usr/bin/yq

0 comments on commit ae63551

Please sign in to comment.