mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-03 06:34:27 +02:00
check-certificates: use $LogAndError
This commit is contained in:
parent
0326a7222c
commit
801608eeaf
1 changed files with 2 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
||||||
:global TimeIsSync;
|
:global TimeIsSync;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
:global LogAndError;
|
||||||
|
|
||||||
:local FormatExpire do={
|
:local FormatExpire do={
|
||||||
:global CharacterReplace;
|
:global CharacterReplace;
|
||||||
|
@ -21,8 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($TimeIsSync = false) do={
|
:if ($TimeIsSync = false) do={
|
||||||
:log warning "Time is not yet synchronized.";
|
$LogAndError "Time is not yet synchronized.";
|
||||||
:error "Warning: See log for details.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={
|
:foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue