From 487756fa468172055f18588cf5d06b967a0215cb Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 14 Jan 2016 15:22:48 +0100 Subject: [PATCH] postinstall script : use /etc/debian_version for debian/ubuntu detection currently we use /etc/lsb-release to detect debian, but this file is only present on ubuntu. /etc/debian_version is installed by default by debian and ubuntu --- scripts/post-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/post-install.sh b/scripts/post-install.sh index 507759eea2..73ce44ea9a 100644 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -53,7 +53,7 @@ if [[ -f /etc/redhat-release ]]; then install_init install_chkconfig fi -elif [[ -f /etc/lsb-release ]]; then +elif [[ -f /etc/debian_version ]]; then # Debian/Ubuntu logic which systemctl &>/dev/null if [[ $? -eq 0 ]]; then