Commit graph

3039 commits

Author SHA1 Message Date
Christian Hesse
953daca8ac backup-email: use :onerror for outer block 2025-05-06 09:53:28 +02:00
Christian Hesse
02a205b14e backup-cloud: use :onerror for outer block 2025-05-06 09:53:24 +02:00
Christian Hesse
b9faeb86b9 accesslist-duplicates: use :onerror for outer block 2025-05-06 09:53:19 +02:00
Christian Hesse
41bf9677db global-functions: use :onerror for outer block 2025-05-06 09:50:20 +02:00
Christian Hesse
90f61d3d75 global-functions: $ExitError: support to pass in error message 2025-05-06 09:43:57 +02:00
Christian Hesse
ccfe1a781e check-routeros-update: log and print info with scheduler 2025-05-06 09:43:57 +02:00
Christian Hesse
154fb43800 mod/notification-ntfy: drop unused variable 2025-05-03 22:11:22 +02:00
Christian Hesse
fa83c76be1 doc/check-lte-firmware-upgrade: add missing reference for ntfy 2025-05-03 22:11:22 +02:00
Christian Hesse
07541a3cbc update list of contributors 2025-05-03 22:11:22 +02:00
Leonardo David Monteiro
0717ebfbd5 introduce mod/notification-gotify...
... for sending notifications via Gotify (https://gotify.net).

Closes: https://github.com/eworm-de/routeros-scripts/pull/92

Co-authored-by: Christian Hesse <mail@eworm.de>
2025-05-03 22:11:22 +02:00
Christian Hesse
507a520994 Merge branch 'external-links' into next 2025-04-29 10:53:26 +02:00
Christian Hesse
fe64918118 README: add disclaimer on external links 2025-04-29 10:53:26 +02:00
Christian Hesse
3822887ba2 doc/mod/notification-telegram: mark all external links 2025-04-24 23:24:53 +02:00
Christian Hesse
c69b13c879 doc/mod/notification-notify: mark all external links 2025-04-24 23:24:50 +02:00
Christian Hesse
183b16d83c doc/mod/notification-matrix: mark all external links 2025-04-24 23:24:47 +02:00
Christian Hesse
0eaefcdc72 doc/mod/notification-email: mark all external links 2025-04-24 23:24:43 +02:00
Christian Hesse
2fa044972c doc/log-forward: mark all external links 2025-04-24 23:24:39 +02:00
Christian Hesse
3788a3e286 doc/fw-addr-lists: mark all external links 2025-04-24 23:24:36 +02:00
Christian Hesse
34eac64f33 doc/check-routeros-update: mark all external links 2025-04-24 23:24:32 +02:00
Christian Hesse
4118f53aae doc/backup-partition: mark all external links 2025-04-24 23:24:28 +02:00
Christian Hesse
b12f8a3974 doc/backup-cloud: mark all external links 2025-04-24 23:24:25 +02:00
Christian Hesse
a1437a4c83 CONTRIBUTIONS: mark all external links 2025-04-24 23:24:25 +02:00
Christian Hesse
8328400e87 CERTIFICATES: mark all external links 2025-04-24 23:24:25 +02:00
Christian Hesse
158230070f BRANCHES: mark all external links 2025-04-24 23:24:25 +02:00
Christian Hesse
405c329f39 README: mark all external links 2025-04-24 23:24:25 +02:00
Christian Hesse
b78df91b23 README: and another hint on RouterOS version 2025-04-17 22:22:05 +02:00
Christian Hesse
29bcd191ee global-functions: $ScriptInstallUpdate: support downloading certificate...
... for individual scripts. Just add it in comment with
"certificate=...". This also works on installtion:

$ScriptInstallUpdate new-script "base-url=..., certificate=...";

Closes: https://github.com/eworm-de/routeros-scripts/pull/97
2025-04-17 10:48:45 +02:00
Christian Hesse
d80f43a1c8 INITIAL-COMMANDS: fix typos 2025-04-14 11:19:46 +02:00
Miquel Bonastre
390e3653d7 INITIAL-COMMANDS: add status output
Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-14 11:19:42 +02:00
Miquel Bonastre
75163f0d3c INITIAL-COMMANDS: support installation from custom server
Closes: https://github.com/eworm-de/routeros-scripts/pull/96

Co-authored-by: Christian Hesse <mail@eworm.de>
2025-04-14 11:19:24 +02:00
Christian Hesse
d4b5e1f5e7 global-functions: $CertificateNameByCN: warn with no match 2025-04-10 11:08:43 +02:00
Christian Hesse
c823ff87ed global-functions: $CertificateNameByCN: return false without match...
... and return true on success.
2025-04-08 16:09:53 +02:00
Christian Hesse
44fa91f5c4 global-functions: $CertificateNameByCN: pick the first match only 2025-04-08 16:09:53 +02:00
Christian Hesse
e36613608c global-functions: $CertificateNameByCN: support matching by fingerprint and name 2025-04-08 16:09:53 +02:00
Christian Hesse
019e10e190 global-functions: $CertificateDownload: no infinite loop
We can not call $CertificateAvailable here, as that will most likely
cause an infinite loop. After all that's the certificate mkcert.org is
using. And it *is* available in this repository.
2025-04-08 16:09:53 +02:00
Christian Hesse
314ba5796d global-functions: $ScriptLock: increase interval with wait time
Inspired by: https://github.com/eworm-de/routeros-scripts/issues/95#issuecomment-2773513467
2025-04-08 16:09:53 +02:00
Christian Hesse
67e7b11aa7 update list of contributors 2025-04-08 09:13:59 +02:00
Ilya Kulakov
27987a0d7c global-functions: $ScriptLock: fix second parameter
This broke with 1e8918fdaa5a30393e2004d1f5e4dff458936b67...

Fixes: https://github.com/eworm-de/routeros-scripts/issues/95
2025-04-08 09:11:45 +02:00
Christian Hesse
2cc47f56b9 README: give the script names 2025-04-02 11:32:24 +02:00
Christian Hesse
b560ea4b7d logo: strip some bytes...
... by just re-compressing/re-encoding.
2025-04-01 17:39:50 +02:00
Christian Hesse
cdfb086b49 mod/notification-telegram: fix override quirk
IDs for chat and thread can be overridden. Overriding the chat probably
makes the thread invalid - so ignore that then.
2025-04-01 17:39:50 +02:00
Christian Hesse
3c30276e23 check-routeros-update: split off check-perpetual-license...
... and also add documentation, screenshot, etc.
2025-04-01 17:39:50 +02:00
Christian Hesse
16c9ce437e check-routeros-update: send notification on renewed license...
... when a warning has been sent before.
2025-03-27 22:26:39 +01:00
Christian Hesse
6909514692 check-routeros-update: send certificate warning just once...
... and another one once expired.
2025-03-27 10:27:54 +01:00
Christian Hesse
f8c3659f6a support creating the checksums file 2025-03-27 10:27:54 +01:00
Christian Hesse
ce39b79f69 capsman-download-packages: fix parameter for $RmFile
The function can not handle ids, we have to pass a name instead.
2025-03-13 11:50:38 +01:00
Christian Hesse
20bf609c44 check-routeros-update: fix condition for license check
Turns out that `next-renewal-at` is moved forward when renewal failed,
so it never matches the criteria. Just start complaining three weeks
before deadline.
2025-03-13 10:51:39 +01:00
Christian Hesse
b63e0fcb2f netwatch-notify: check matching address type only 2025-03-12 11:26:22 +01:00
Christian Hesse
1555426687 netwatch-notify: increase the timeout even more
This interacts with the number of addresses in the address-list. Having
a lot of addresses there (for exemple from script 'fw-addr-lists' 😜)
makes the 'find' take longer. We have to make sure that 'find' succeeds
before the address times out.

As this does not hurt... Let's just bump to 10 seconds to be safe.
2025-03-12 11:18:18 +01:00
Christian Hesse
97b99316b2 netwatch-notify: increase timeout...
... as a timeout of one second expires immediately. 🤨
2025-03-12 10:31:11 +01:00