Add --autoremove to tip for removing bind/apache

This commit is contained in:
Alexandre Aubin 2019-09-20 22:50:57 +02:00 committed by GitHub
parent 41cea20357
commit ef278ad940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."
}