From c8b672386c48a60235e6dd8e752919b1cdd68f26 Mon Sep 17 00:00:00 2001 From: Chalith Desaman Date: Thu, 21 Dec 2023 13:12:39 +0530 Subject: [PATCH] Install jq as a dependency (#327) --- installer/prereq.sh | 2 +- installer/setup.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/installer/prereq.sh b/installer/prereq.sh index 588d3f4..cdcfd2d 100755 --- a/installer/prereq.sh +++ b/installer/prereq.sh @@ -27,7 +27,7 @@ stage "Installing dependencies" # Added --allow-releaseinfo-change # To fix - Repository 'https://apprepo.vultr.com/ubuntu universal InRelease' changed its 'Codename' value from 'buster' to 'universal' apt-get update --allow-releaseinfo-change -apt-get install -y uidmap fuse3 cgroup-tools quota curl openssl jq +apt-get install -y uidmap fuse3 cgroup-tools quota curl openssl # uidmap # Required for rootless docker. # slirp4netns # Required for high performance rootless networking. diff --git a/installer/setup.sh b/installer/setup.sh index 2ce48d2..654f7fa 100755 --- a/installer/setup.sh +++ b/installer/setup.sh @@ -265,6 +265,12 @@ function check_prereq() { echo "qrencode command not found. Installing.." apt-get install -y qrencode >/dev/null fi + + # Check jq command is installed. + if ! command -v jq &>/dev/null; then + echo "jq command not found. Installing.." + apt-get install -y jq >/dev/null + fi } function check_sys_req() {