From 290a269c91d4bb121914202824c0c743066aa2ea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Jul 2019 21:16:15 +0200 Subject: Handling /etc/debian_version on Progress Linux backports distributions. Signed-off-by: Daniel Baumann --- debian/progress-linux.config | 18 ++++++++++++++---- debian/progress-linux.postinst | 4 ++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/debian/progress-linux.config b/debian/progress-linux.config index adac5b6..3d74491 100755 --- a/debian/progress-linux.config +++ b/debian/progress-linux.config @@ -27,9 +27,10 @@ Run_debconf () fi } -DISTRIBUTION="$(cat /etc/debian_version)" +DEBIAN_VERSION="$(cat /etc/debian_version)" +PROGRESS_LINUX_VERSION="$(if [ -e /etc/progress-linux_version ]; then cat /etc/progress-linux_version; fi)" -case "${DISTRIBUTION}" in +case "${DEBIAN_VERSION}" in 10.*|buster/sid) RELEASE="5" CODENAME="engywuck" @@ -38,8 +39,17 @@ case "${DISTRIBUTION}" in ;; 11.*|bullseye/sid) - RELEASE="6" - CODENAME="fuchur" + case "${PROGRESS_LINUX_VERSION}" in + 5*) + RELEASE="5" + CODENAME="engywuck" + ;; + + *) + RELEASE="6" + CODENAME="fuchur" + ;; + esac Run_debconf ;; diff --git a/debian/progress-linux.postinst b/debian/progress-linux.postinst index ab4b4f8..f787a60 100755 --- a/debian/progress-linux.postinst +++ b/debian/progress-linux.postinst @@ -130,9 +130,9 @@ case "${1}" in db_stop - DISTRIBUTION="$(cat /etc/debian_version)" + DEBIAN_VERSION="$(cat /etc/debian_version)" - case "${DISTRIBUTION}" in + case "${DEBIAN_VERSION}" in 10.*|buster/sid) ;; -- cgit v1.2.3