From 5bc9c0866b863a0821f1a1a47df511f1954e22f3 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 25 Jan 2020 18:13:50 +0100 Subject: [PATCH] always install jquery --- nextcloud_install_production.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 518601b93d..53cd9af756 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -50,6 +50,15 @@ else apt install whiptail -y fi +# Install jq if not existing (for notify_admin_gui) +if [ "$(dpkg-query -W -f='${Status}' "jq" 2>/dev/null | grep -c "ok installed")" == "1" ] +then + print_text_in_color "$IGreen" "jquery OK" +else + apt update -q4 & spinner_loading + apt install jq -y +fi + # shellcheck disable=2034,2059 true # shellcheck source=lib.sh