From 41cea20357bd1a5871e46706f93ea0cf392c58c6 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 10 Sep 2019 13:32:13 +0200 Subject: [PATCH 1/2] Add tip on how to remove conflciting packages like bind9 and apache --- install_yunohost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_yunohost b/install_yunohost index 405f7f1..1441235 100755 --- a/install_yunohost +++ b/install_yunohost @@ -246,10 +246,10 @@ function check_assertions() # Check possible conflict with apache, bind9. [[ -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." + || die "Bind9 is installed and might conflict with dnsmasq. Uninstall it first using 'apt remove bind9 --purge', or if you know what you are doing, run this script with -f." [[ -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." + || die "Apache is installed and might conflict with nginx. Uninstall it first using 'apt remove apache2 --purge', or if you know what you are doing, run this script with -f." } From ef278ad94040436166a9e661cad2e649f3c34c7a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Sep 2019 22:50:57 +0200 Subject: [PATCH 2/2] Add --autoremove to tip for removing bind/apache --- install_yunohost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_yunohost b/install_yunohost index 1441235..35bdf61 100755 --- a/install_yunohost +++ b/install_yunohost @@ -246,10 +246,10 @@ function check_assertions() # Check possible conflict with apache, bind9. [[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'bind9\s')" ]] || [[ "$FORCE" == "1" ]] \ - || die "Bind9 is installed and might conflict with dnsmasq. Uninstall it first using 'apt remove bind9 --purge', or if you know what you are doing, run this script with -f." + || die "Bind9 is installed and might conflict with dnsmasq. Uninstall it first using 'apt remove bind9 --purge --autoremove', or if you know what you are doing, run this script with -f." [[ -z "$(dpkg --get-selections | grep -v deinstall | grep 'apache2\s')" ]] || [[ "$FORCE" == "1" ]] \ - || die "Apache is installed and might conflict with nginx. Uninstall it first using 'apt remove apache2 --purge', or if you know what you are doing, run this script with -f." + || die "Apache is installed and might conflict with nginx. Uninstall it first using 'apt remove apache2 --purge --autoremove', or if you know what you are doing, run this script with -f." }