From 2e2f4717cd48b23a20129fbe837ca71f3ffdc677 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 5 May 2022 11:00:32 +0200 Subject: [PATCH] Fix for #2288 (#2289) --- lib.sh | 2 +- nextcloud_install_production.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.sh b/lib.sh index 2cf7d4f7..4a9ccd90 100644 --- a/lib.sh +++ b/lib.sh @@ -1061,7 +1061,7 @@ fi # Check if program is installed (stop_if_installed apache2) stop_if_installed() { -if [ "$(dpkg-query -W -f='${Status}' "${1}" 2>/dev/null | grep -c "ok installed")" == "1" ] +if [ "$(dpkg-query -W -f='${Status}' "${1}" 2>/dev/null | grep -c "ok installed")" = "1" ] then print_text_in_color "$IRed" "${1} is installed, it must be a clean server." exit 1 diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 5cf7a354..60c5af8f 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -20,7 +20,7 @@ then fi # Install curl if not existing -if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ] +if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" = "1" ] then echo "curl OK" else