generate-ldif: detect installed packages even if "held" by APT

This commit is contained in:
Jérémy Lecour 2018-08-17 11:56:35 +02:00 committed by Jérémy Lecour
parent 4461281945
commit 40160e0c6e
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release.
* elasticsearch: add http.publish_host variable
* evoacme: disable old certbot cron also in cron.daily
* evolinux-base: add mail related aliases
* generate-ldif: detect installed packages even if "held" by APT
* java: support for Oracle JRE
* kibana: log messages go to /var/log/kibana/kibana.log
* metricbeat: add a role (copied from filebeat)

View file

@ -6,7 +6,7 @@ if [ $(id -u) != 0 ]; then
fi
is_pkg_installed() {
dpkg -l "$1" 2>/dev/null | grep -q '^ii'
dpkg -l "$1" 2>/dev/null | grep -q -E '^(i|h)i'
}
get_pkg_version() {