From 1cdb6339dae4411ffeb3d7f16599339d67387a66 Mon Sep 17 00:00:00 2001 From: Tommy Li Date: Wed, 11 May 2022 23:37:18 -0700 Subject: [PATCH] fix directory path for prometheus install.sh (#256) --- install/prometheus/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/prometheus/install.sh b/install/prometheus/install.sh index 3e234f94267..705f811f33b 100755 --- a/install/prometheus/install.sh +++ b/install/prometheus/install.sh @@ -8,7 +8,8 @@ helm repo update helm --namespace prometheus-system install prometheus-operator prometheus-community/kube-prometheus-stack --create-namespace # set the place of monitor files -monitor_dir=../../config/prometheus +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)" +monitor_dir=${DIR}/../../config/prometheus # start to install monitor pushd ${monitor_dir}