Skip to content

Commit

Permalink
always install jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Jan 25, 2020
1 parent 58a3948 commit 5bc9c08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nextcloud_install_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bc9c08

Please sign in to comment.