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 ubuntupull/5357/head
parent
ba7fc7d548
commit
487756fa46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue