mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-certificates: wait to be fully connected
This commit is contained in:
@ -17,18 +17,16 @@
|
||||
:global ParseKeyValueStore;
|
||||
:global SendNotification;
|
||||
:global SymbolForNotification;
|
||||
:global TimeIsSync;
|
||||
:global UrlEncode;
|
||||
:global WaitForFile;
|
||||
:global WaitFullyConnected;
|
||||
|
||||
:local FormatExpire do={
|
||||
:global CharacterReplace;
|
||||
:return [ $CharacterReplace [ $CharacterReplace [ :tostr $1 ] "w" "w " ] "d" "d " ];
|
||||
}
|
||||
|
||||
:if ([ $TimeIsSync ] = false) do={
|
||||
$LogPrintExit warning ("Time is not yet synchronized.") true;
|
||||
}
|
||||
$WaitFullyConnected;
|
||||
|
||||
:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={
|
||||
:local CertVal [ / certificate get $Cert ];
|
||||
|
Reference in New Issue
Block a user