>From 6175bd3f05cbfd5f7d9b26770d9a98012803745c Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Tue, 29 Sep 2015 11:52:30 +0200 Subject: [PATCH 1/3] CI: Don't depend on user input with apt-get Resolves: https://fedorahosted.org/sssd/ticket/2433 --- contrib/ci/README.md | 6 ++++++ contrib/ci/distro.sh | 2 ++ 2 files changed, 8 insertions(+) diff --git a/contrib/ci/README.md b/contrib/ci/README.md index 6b5f7f30eac8327d5aa45c3bfefd57e8d3109fe0..075bc3e074cb13916619f46c12c6d1a4de0158a2 100644 --- a/contrib/ci/README.md +++ b/contrib/ci/README.md @@ -47,6 +47,12 @@ and Debian-based distros: Where `` is the user invoking CI. +You might also want to allow to keep environment variable DEBIAN_FRONTEND +on debian. So script can perform an unattended installation of a Debian package +with apt-get. + Defaults!/usr/bin/apt-get env_keep += "DEBIAN_FRONTEND + + On Red Hat distros a repository carrying dependencies missing from some distros needs to be added to yum configuration. See instructions on the [Copr project page](http://copr-fe.cloud.fedoraproject.org/coprs/lslebodn/sssd-deps/). diff --git a/contrib/ci/distro.sh b/contrib/ci/distro.sh index 5416bfff325c4e5d0a10ebea67cba26e20e03fd5..095985ccae81e54bcd79607e455a1c9295aad867 100644 --- a/contrib/ci/distro.sh +++ b/contrib/ci/distro.sh @@ -30,6 +30,8 @@ if [ -e /etc/redhat-release ]; then DISTRO_FAMILY=redhat elif [ -e /etc/debian_version ]; then DISTRO_FAMILY=debian + # Perform an unattended installation of a Debian package with apt-get + export DEBIAN_FRONTEND=noninteractive else DISTRO_FAMILY=unknown fi -- 2.5.0