From cc4daf6346cad7bc40016289047d552c0ebcffbb Mon Sep 17 00:00:00 2001 From: f Date: Tue, 2 Feb 2021 21:05:01 -0300 Subject: [PATCH] use the same dir --- prometheusd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheusd.sh b/prometheusd.sh index ff8e549..6fee544 100755 --- a/prometheusd.sh +++ b/prometheusd.sh @@ -14,8 +14,8 @@ case $1 in start) rm -f "${pid}" - chown prometheus:prometheus /var/lib/prometheus/data - chmod -R u=rwX,g=rX,o= /var/lib/prometheus + chown prometheus:prometheus "${var}" + chmod -R u=rwX,g=rX,o= "${var}" daemonize -p "${pid}" -l "${pid}" -u prometheus -c "${var}" \ /usr/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path="${var}/data"