From b0679a91bb9ed610e2eb18a4f7f121e46cd2fbf5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 16 Jun 2016 06:38:51 +0200 Subject: Checking for existence of lsb_release in debconf config script (Closes: #827378). Signed-off-by: Daniel Baumann --- debian/open-infrastructure-container-tools.config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/open-infrastructure-container-tools.config b/debian/open-infrastructure-container-tools.config index 73d2157..dfe79fe 100644 --- a/debian/open-infrastructure-container-tools.config +++ b/debian/open-infrastructure-container-tools.config @@ -23,7 +23,11 @@ db_go SCRIPT_CHOICES="$(cd /usr/share/container-tools/scripts && find -maxdepth 1 -not -type d -and -not -name 'debconf' -and -not -name '*.d' -printf '%P\n' | sort)" db_subst open-infrastructure-container-tools/script SCRIPT_CHOICES "$(echo ${SCRIPT_CHOICES} | sed -e 's| |, |g')" -DISTRIBUTOR="$(lsb_release -is 2>/dev/null)" +if [ -x /usr/bin/lsb_release ] +then + DISTRIBUTOR="$(lsb_release -is 2>/dev/null)" +fi + DISTRIBUTOR="${DISTRIBUTOR:-Debian}" case "${DISTRIBUTOR}" in -- cgit v1.2.3