mirror of
https://github.com/IgorKha/Grafana-Mikrotik.git
synced 2025-12-06 18:39:28 +00:00
fix action test & update readme
This commit is contained in:
parent
8148fedc19
commit
7241b15abe
3 changed files with 5 additions and 5 deletions
2
.github/workflows/action.yml
vendored
2
.github/workflows/action.yml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: deploy with sh script
|
||||
run: sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" ""
|
||||
run: curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh | bash -s --
|
||||
|
||||
- name: Test Grafana
|
||||
run: sleep 5 && curl -ILsS --retry 5 --retry-delay 2 "http://localhost:3000/login"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
### Deploy with sh script
|
||||
|
||||
```console
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh)" "" --config
|
||||
curl -fsSL https://raw.githubusercontent.com/IgorKha/Grafana-Mikrotik/master/run.sh | bash -s -- --config
|
||||
```
|
||||
|
||||
```console
|
||||
|
|
|
|||
4
run.sh
4
run.sh
|
|
@ -62,7 +62,7 @@ ask() {
|
|||
}
|
||||
|
||||
command_exists() {
|
||||
command -v "$@" || {
|
||||
command -v "$@" >/dev/null 2>&1 || {
|
||||
fmt_error "$* is not installed. Please install $* first."
|
||||
exit 1
|
||||
}
|
||||
|
|
@ -94,7 +94,7 @@ clone_git() {
|
|||
|
||||
router_ip() {
|
||||
if [[ "${CONFIG}" = yes ]]; then
|
||||
IP=$(grep -R 'MIKROTIK_IP' "${ENV_FILE}" 2>&1 | cut -d= -f2)
|
||||
IP=$(grep -R 'MIKROTIK_IP' "${ENV_FILE}" | cut -d= -f2)
|
||||
echo -e "\n${BLUE}===================================="
|
||||
echo -e "\n${BOLD}Prometheus${RESET}\n"
|
||||
if ask "Change target mikrotik IP address ? (current ${IP})" Y; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue