From d7c6df878c68740cce120efebde3d48103125568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 31 Oct 2024 15:57:05 +0100 Subject: [PATCH] Fix issues when fixing shellcheck issues --- bookworm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookworm b/bookworm index 70880b0..f6e6b6e 100755 --- a/bookworm +++ b/bookworm @@ -319,7 +319,7 @@ function check_assertions() fi # Check we aren't running in docker or other weird containers that we can't probably install on - if systemd-detect-virt | grep -v -q -w "docker\|container-other" && [[ "$FORCE" != "true" ]]; then + if systemd-detect-virt | grep -q -w "docker\|container-other" && [[ "$FORCE" != "true" ]]; then error "It seems like you are trying to install YunoHost in docker or a weird container technology which probably is not supported by this install script (or YunoHost as a whole). If you know what you are doing, you can run this script with -f." return 1 fi @@ -328,7 +328,7 @@ function check_assertions() error "Bind9 is installed on your system. Yunohost conflicts with Bind9 because it requires dnsmasq. To be able to run this script, you should first run 'apt remove bind9 --purge --autoremove'." return 1 fi - if dpkg --get-selections | grep -v deinstall | grep 8Q 'apache2\s' && [[ "$FORCE" != "true" ]]; then + if dpkg --get-selections | grep -v deinstall | grep -q 'apache2\s' && [[ "$FORCE" != "true" ]]; then error "Apache is installed on your system. Yunohost conflicts with apache2 because it requires nginx. To be able to run this script, you should first run 'apt remove apache2 --purge --autoremove'." return 1 fi