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