mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 02:19:28 +00:00
small fix 'router_ip'
This commit is contained in:
parent
14dfc12bc7
commit
1e4296732d
1 changed files with 3 additions and 1 deletions
4
run.sh
4
run.sh
|
|
@ -113,7 +113,7 @@ router_ip() {
|
||||||
if [ -d "./${REPO}" ]; then
|
if [ -d "./${REPO}" ]; then
|
||||||
sed -i -e 's/192.168.88.1/'"${IP}"'/g' \
|
sed -i -e 's/192.168.88.1/'"${IP}"'/g' \
|
||||||
${REPO}/prometheus/prometheus.yml
|
${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
|
else
|
||||||
sed -i -e 's/192.168.88.1/'"${IP}"'/g' \
|
sed -i -e 's/192.168.88.1/'"${IP}"'/g' \
|
||||||
./prometheus/prometheus.yml
|
./prometheus/prometheus.yml
|
||||||
|
|
@ -208,3 +208,5 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config
|
||||||
Loading…
Add table
Add a link
Reference in a new issue