[microdecision] Fix detection of bind9/apache2 before starting the actual install

Credit goes to Guigo for spotting this (and another person who reported similar malfunction for apache2)
This commit is contained in:
Alexandre Aubin 2018-04-01 22:20:50 +02:00 committed by GitHub
parent 4c924e83b8
commit 5a66ff9e0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,10 +217,10 @@ function check_assertions()
fi
# Check possible conflict with apache, bind9.
[[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'bind9 ')" ]] || [[ "$FORCE" == "1" ]] \
[[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'bind9\s')" ]] || [[ "$FORCE" == "1" ]] \
|| die "Bind9 is installed and might conflict with dnsmasq. Uninstall it first, or if you know what you are doing, run this script with -f."
[[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'apache2 ')" ]] || [[ "$FORCE" == "1" ]] \
[[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'apache2\s')" ]] || [[ "$FORCE" == "1" ]] \
|| die "Apache is installed and might conflict with nginx. Uninstall it first, or if you know what you are doing, run this script with -f."
}