From 5a66ff9e0ea4ecdbab91fce78313fa1a0a96f9f5 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 1 Apr 2018 22:20:50 +0200 Subject: [PATCH] [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) --- install_yunohost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_yunohost b/install_yunohost index c906c0c..9c487d0 100755 --- a/install_yunohost +++ b/install_yunohost @@ -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." }