mirror of
https://github.com/frappe/frappe_docker.git
synced 2025-01-10 09:02:13 +00:00
Use jq for parsing config in healthcheck
This commit is contained in:
parent
7711613f05
commit
d15ef8d4e4
@ -85,6 +85,7 @@ RUN apt-get update \
|
|||||||
wkhtmltopdf \
|
wkhtmltopdf \
|
||||||
# For healthcheck.sh in helm chart
|
# For healthcheck.sh in helm chart
|
||||||
wait-for-it \
|
wait-for-it \
|
||||||
|
jq \
|
||||||
# other
|
# other
|
||||||
nodejs \
|
nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
get_key() {
|
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() {
|
get_redis_url() {
|
||||||
|
Loading…
Reference in New Issue
Block a user