Christian Hesse
6699545157
packages-update: allow to downgrade on change of update channel
2019-07-24 10:49:51 +02:00
Christian Hesse
7fe0938f86
packages-update: break if latest version is unknown
2019-07-24 10:22:37 +02:00
Christian Hesse
3aa4d7ea50
packages-update: get values into array
2019-07-24 10:13:39 +02:00
Christian Hesse
229dc539cc
global-functions: $DownloadPackage: fix downloading for CHR / x86_64
2019-07-19 15:37:01 +02:00
Christian Hesse
1e075d8d64
packages-update: run email-backup and/or upload-backup
2019-07-19 11:46:29 +02:00
Christian Hesse
8d1313f588
add script 'upload-backup'
2019-07-19 11:46:29 +02:00
Christian Hesse
26f01b238b
global-config: move config for email-backup
...
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-07-19 11:46:29 +02:00
Christian Hesse
431a4c8176
email-backup: no more than one dot in file name
...
Looks like some providers do not allow more than one dot in attachment's
file name to mitigate something like `holiday.png.exe`.
Let's just replace dots with underscores.
Fixes #2
Reported-by: @Kampfwurst
2019-07-18 14:43:13 +02:00
Christian Hesse
e309dee3b1
capsman-download-packages: do not require extra permission
...
The idea was to run capsman-download-packages from netwatch when
upgrade.mikrotik.com is up.
Instead run it from scheduler at startup, but add a delay:
/ system scheduler add name=capsman-download-packages \
on-event=":delay 2m; capsman-download-packages" start-time=startup
2019-07-18 14:00:53 +02:00
Christian Hesse
b68f5ebc86
daily-psk-schedule: better matching
2019-07-18 13:50:01 +02:00
Christian Hesse
5d12be36d7
update-tunnelbroker: use $ParseKeyValueStore
2019-07-18 13:50:01 +02:00
Christian Hesse
beb2e70097
check-certificates: use $ParseKeyValueStore
2019-07-18 13:50:01 +02:00
Christian Hesse
047c0989d8
ipv6-update: use $ParseKeyValueStore
2019-07-18 13:50:01 +02:00
Christian Hesse
f79ba55637
global-functions: add $ParseKeyValueStore
2019-07-17 16:27:21 +02:00
Christian Hesse
16f04ee7ee
global-functions: $CharacterReplace: use same condition in loop
2019-07-16 12:46:33 +02:00
Christian Hesse
b1b53e3d0d
global-functions: append system note in e-mail signature
2019-07-16 12:42:40 +02:00
Christian Hesse
12af69b443
update-gre-address: handle missing dynamic address
2019-07-10 11:45:20 +02:00
Christian Hesse
13f091e5ae
gps-track: remove workaround
2019-07-09 11:19:41 +02:00
Christian Hesse
65c76b8409
capsman-rolling-upgrade: log with info, give identity
2019-07-08 15:49:00 +02:00
Christian Hesse
43d77cb62d
lease-script: give hint about mis-usage
2019-07-05 23:38:44 +02:00
Christian Hesse
933db2ddc8
sms-action: give hint about mis-usage
2019-07-05 23:33:45 +02:00
Christian Hesse
15beb92347
ppp-on-up: give hint about mis-usage
2019-07-05 23:21:46 +02:00
Christian Hesse
894ee65675
ipv6-update: give hint about mis-usage
2019-07-05 16:09:49 +02:00
Christian Hesse
1272fe1cb1
update-gre-address: get values into arrays
2019-07-01 11:26:10 +02:00
Christian Hesse
5d0104f0a7
update-gre-address: update for latest routeros
...
With RouterOS 6.45 "remote-peers" was renamed to "active-peers":
*) ipsec - renamed "remote-peers" to "active-peers";
2019-07-01 10:21:17 +02:00
Christian Hesse
08ef63ddbd
check-routeros-update: link a changelog that opens in browser
...
The old link was delivered with MIME type 'application/octet-stream',
browsers wanted to download it as file.
2019-07-01 09:44:50 +02:00
Christian Hesse
44dd4231cb
bridge-port-to-default: handle special value 'dhcp-client'...
...
... which disables the bridge port, but enables a dhcp client.
2019-06-26 00:07:11 +02:00
Christian Hesse
9d1a59fd64
bridge-port-to-default: get bridge port values into array
2019-06-25 23:06:51 +02:00
Christian Hesse
2f22e06b9b
gps-track: fix the condition for workaround
...
A null byte is always matched in regexp...
2019-06-25 14:32:25 +02:00
Christian Hesse
e9cdf94785
add script 'certificate-renew-issued'
2019-06-24 13:39:45 +02:00
Christian Hesse
5101d57d52
backup: split off cloud-backup
...
Currently backup to MikroTik cloud is pretty unreliable and script can
not catch errors at runtime. Looks like this does not change any time
soon (Ticket#2019052022003204).
So let's just split off the cloud backup to make sure email backup works
as expected.
2019-06-14 15:13:41 +02:00
Christian Hesse
2252058202
daily-psk: add hint about device specific rule
...
I tricked myself several times... If a more device specific (or just
earlier matching) rule exists the daily PSK is not applied!
2019-06-13 08:14:03 +02:00
Christian Hesse
44836ccf04
mode-button-scheduler: beep for confirmation
...
But be silent if silent-boot is enabled.
2019-06-12 20:34:20 +02:00
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