Commit graph

2148 commits

Author SHA1 Message Date
Christian Hesse fd2901cd45 daily-psk.capsman: pick only first configuration 2019-05-24 14:26:32 +02:00
Christian Hesse a2e6362967 check-lte-firmware-upgrade: drop literal 'notification' 2019-05-23 12:19:01 +02:00
Christian Hesse 0c45102798 check-routeros-update: drop literal 'notification' 2019-05-23 12:19:01 +02:00
Christian Hesse cf3cd89398 check-certificates: get certificate values into array 2019-05-21 13:24:43 +02:00
Christian Hesse 6b603b1e0e gps-track: make workaround conditional
This is fixed in 6.45rc42.
2019-05-09 22:07:09 +02:00
Christian Hesse a1bad3c0aa email-backup: make sure to act on first cloud backup 2019-05-09 21:20:44 +02:00
Christian Hesse b7592f6b18 check-certificates: do not try to renew locally issued certificates 2019-05-02 11:59:43 +02:00
Christian Hesse 360d30bf2a check-certificates: give issuer info on locally issued certificates
Certificates issued locally do not have an 'issuer' property, but a
'ca' one. Looks like either of both is filled, so just concatenate.
2019-05-02 11:16:28 +02:00
Christian Hesse 42834e9de1 global-functions: $CertificateAvailable: fetch by CommonName
Now that we have a proper $UrlEncode function... Fetch certificates
by CommonName.

Also remove the PEM after import.
2019-04-30 16:52:53 +02:00
Christian Hesse 7f96e5c966 global-functions: add $WaitForFile, wait for file on fetch
The fetch command is asynchronous, the file is not guaranteed to be
available when command terminates.

I opened an issue at Mikrotik support (Ticket#2019041722004999),
their answer:

> You should perform a check in a loop.
> :delay until file exist
>
> That can happen also with any configuration not just files.

So add a function to wait for a file with given name.

I have not seen this with other configuration, though.
2019-04-30 16:52:53 +02:00
Christian Hesse 9aac873163 daily-psk-schedule: try to rotate ntp after five minutes uptime 2019-04-16 09:29:43 +02:00
Christian Hesse 5273efda21 check-certificates: make sure fingerprint is a string
This makes sure the condition below works for certificate templates,
which do not have a fingerprint.
2019-04-11 22:22:05 +02:00
Christian Hesse 20d7020fe3 check-certificates: do not send notification for templates 2019-04-11 10:19:46 +02:00
Christian Hesse ea94b7598e check-certificates: always return a string in $GetIssuerCN 2019-04-11 09:57:20 +02:00
Christian Hesse 58c25c8cca check-certificates: add url encoding for certificate download 2019-04-10 14:47:20 +02:00
Christian Hesse e562825bd9 check-certificates: try to fetch PEM and P12 file 2019-04-10 14:29:24 +02:00
Christian Hesse 5beebbe8e8 check-certificates: use full path...
... to make sure syntax does not break if package is not installed.
2019-04-10 14:29:24 +02:00
Christian Hesse c0b73d6e92 check-certificates: just change certificates, no loop 2019-04-10 13:59:38 +02:00
Christian Hesse b93d4d40bc drop deprecated mode= for fetch 2019-04-09 18:01:44 +02:00
Christian Hesse 2e10a80f95 sms-forward: group messages for same sender 2019-04-05 09:24:04 +02:00
Christian Hesse 15d3e9ea7b global-config: change duplicate word from daily psk 2019-04-05 07:56:50 +02:00
Christian Hesse 50279efbdb ipv6-update: fix with prefix containing section(s) of zeros 2019-04-04 22:37:13 +02:00
Christian Hesse 228ec7106b daily-psk: use the template system 2019-04-03 22:51:15 +02:00
Christian Hesse b35c0b8a6f always write warnings and errors to log 2019-04-03 21:30:43 +02:00
Christian Hesse 27b2fffaaf script-updates: clear variable after use 2019-04-03 13:14:09 +02:00
Christian Hesse ea73505ecc script-updates: send global-config changes notification just once 2019-04-03 08:30:28 +02:00
Christian Hesse 7b1c275cc2 script-updates: add option to ignore global-config changes 2019-04-02 08:48:35 +02:00
Christian Hesse 594aef2aab check-certificates: support multiple passphrases 2019-04-01 22:45:38 +02:00
Christian Hesse 40201ac1ea script-updates: add changelog for global configuration 2019-04-01 12:39:37 +02:00
Christian Hesse 6388a97f31 README: add hint on features for specific scripts 2019-04-01 10:42:57 +02:00
Christian Hesse 53b3d71f57 README: drop hint on old branch
Now that release channel 'long-term' is at 6.43.x...
2019-04-01 10:42:57 +02:00
Christian Hesse f52a69cd97 check-routeros-update: link to changelog in notification 2019-03-29 12:23:16 +01:00
Christian Hesse de602cba4f check-certificates: show remaining time 2019-03-28 13:32:08 +01:00
Christian Hesse 26ccf41298 global-functions: prevent infinite loop 2019-03-28 12:36:12 +01:00
Christian Hesse 04b7b1f3b5 check-certificates: update certificates for ipsec identities 2019-03-25 16:49:26 +01:00
Christian Hesse 72d7050423 global-functions: encode all non-alphanumeric characters 2019-03-20 22:42:16 +01:00
Christian Hesse 213d326ad4 accesslist-duplicates: Read index from terminal inkey 2019-03-16 23:36:38 +01:00
Christian Hesse 39d1027d69 link the presentation from MUM Europe 2019 in Vienna 2019-03-12 21:00:39 +01:00
Michael Gisbers cf09542635 daily-psk: prepare for caps-man
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-03-06 16:12:03 +01:00
Michael Gisbers 6a048d5681 daily-psk: encode ssid and pass in url
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-03-06 14:45:26 +01:00
Christian Hesse a66713d093 check-certificates: split loop for certificate renew and warning
This allows to have differnt time values.
2019-03-06 13:49:12 +01:00
Christian Hesse 99a23f99e5 global-functions: remove extra check in $DownloadPackage
Should be fixed in RouterOS 6.44rc1 with changelog:

*) fetch - improved file downloading to slow memory;
2019-02-28 14:41:44 +01:00
Christian Hesse fee0b6eb9b check-routeros-update: default in capital letter
Also use square brackets as RouterOS does.
2019-02-22 21:41:49 +01:00
Christian Hesse e72b3dd4f1 collect-wireless-mac: use $ScriptLock 2019-02-21 20:16:03 +01:00
Christian Hesse fe1d234025 global-functions: add $ScriptLock 2019-02-21 18:35:08 +01:00
Christian Hesse 4c28e9f9c2 check-routeros-update: allow interactive update from terminal 2019-02-21 18:08:29 +01:00
Christian Hesse 04025da9b8 global-functions: drop $Read, use :return directly 2019-02-21 00:03:57 +01:00
Christian Hesse 5f7c727457 check-routeros-update: give board name and model 2019-02-19 22:56:28 +01:00
Christian Hesse 5f210eb1ec check-routeros-update: use new script 'packages-update' 2019-02-19 16:47:41 +01:00
Christian Hesse e991c82016 add script 'packages-update' 2019-02-19 16:47:41 +01:00