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
pull/5357/head
Alexandre Derumier 2016-01-14 15:22:48 +01:00
parent ba7fc7d548
commit 487756fa46
1 changed files with 1 additions and 1 deletions

View File

@ -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