summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-06-16 04:38:51 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-06-16 04:40:28 +0000
commitb0679a91bb9ed610e2eb18a4f7f121e46cd2fbf5 (patch)
tree8e2fd3e3dff881b448285b8396486d4523a9406d
parentAdding note about uploading to sid in previous changelog entry. (diff)
downloadopen-infrastructure-compute-tools-b0679a91bb9ed610e2eb18a4f7f121e46cd2fbf5.tar.xz
open-infrastructure-compute-tools-b0679a91bb9ed610e2eb18a4f7f121e46cd2fbf5.zip
Checking for existence of lsb_release in debconf config script (Closes: #827378).
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
-rw-r--r--debian/open-infrastructure-container-tools.config6
1 files changed, 5 insertions, 1 deletions
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