From 1e4296732da5d25309f6432ca4a4de49c2a21b89 Mon Sep 17 00:00:00 2001 From: IgorKha <2268209+IgorKha@users.noreply.github.com> Date: Sun, 10 Oct 2021 04:30:39 +0300 Subject: [PATCH] small fix 'router_ip' --- run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 988a6e4..ebe0330 100755 --- a/run.sh +++ b/run.sh @@ -113,7 +113,7 @@ router_ip() { if [ -d "./${REPO}" ]; then sed -i -e 's/192.168.88.1/'"${IP}"'/g' \ ${REPO}/prometheus/prometheus.yml - sed -ri -e 's/^(MIKROTIK_IP=)(.*)$/\1'"$IP"'/g' ${REPO}/$ENV_FILE + sed -ri -e 's/^(MIKROTIK_IP=)(.*)$/\1'"$IP"'/g' $ENV_FILE else sed -i -e 's/192.168.88.1/'"${IP}"'/g' \ ./prometheus/prometheus.yml @@ -208,3 +208,5 @@ main() { } main "$@" + +sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config \ No newline at end of file