Use jq for parsing config in healthcheck
This commit is contained in:
@@ -85,6 +85,7 @@ RUN apt-get update \
|
||||
wkhtmltopdf \
|
||||
# For healthcheck.sh in helm chart
|
||||
wait-for-it \
|
||||
jq \
|
||||
# other
|
||||
nodejs \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
get_key() {
|
||||
grep "$1" /home/frappe/frappe-bench/sites/common_site_config.json | awk -v word="$1" '$word { gsub(/[",]/,"",$2); print $2}' | tr -d '\n'
|
||||
jq -r ".$1" /home/frappe/frappe-bench/sites/common_site_config.json
|
||||
}
|
||||
|
||||
get_redis_url() {
|
||||
|
||||
Reference in New Issue
Block a user