]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:30:03 01.04.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Wed, 1 Apr 2026 02:30:03 +0000 (05:30 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Wed, 1 Apr 2026 02:30:03 +0000 (05:30 +0300)
html/.#AM-CheckCerts.rsc [deleted symlink]
html/AM-CheckCerts.rsc
html/AM-GlobalFunc.rsc

diff --git a/html/.#AM-CheckCerts.rsc b/html/.#AM-CheckCerts.rsc
deleted file mode 120000 (symlink)
index 1432553..0000000
+++ /dev/null
@@ -1 +0,0 @@
-root@amster.4184617
\ No newline at end of file
index 6ed82b44792fbe36a30ef4be0fed346e2da29c9d..78f5f950631cd50d92967d314ea14bb2c0d736c9 100644 (file)
@@ -1,13 +1,12 @@
-#!rsc by RouterOS
-# RouterOS script: check-certificates
-# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
-# https://rsc.eworm.de/COPYING.md
+#!rsc by Vados
+# RouterOS script: AM-CheckCerts
+# Script comment: Check for certificates validity
+# Copyright (c) 2005-2026 Vados <vados@vados.ru>
+#
 #
 # requires RouterOS, version=7.19
 # requires device-mode, fetch
 #
-# check for certificate validity
-# https://rsc.eworm.de/doc/check-certificates.md
 
 :local ExitOK false;
 :onerror Err {
   :global EscapeForRegEx;
   :global IfThenElse;
   :global LogPrint;
-  :global LogPrintOnce;
   :global ParseKeyValueStore;
   :global ScriptLock;
   :global SendNotification2;
   :global SymbolForNotification;
   :global UrlEncode;
-  :global WaitFullyConnected;
+#  :global WaitFullyConnected;
 
   :local CheckCertificatesDownloadImport do={
     :local ScriptName [ :tostr $1 ];
     :set ExitOK true;
     :error false;
   }
-  $WaitFullyConnected;
+#  $WaitFullyConnected;
 
   :foreach Cert in=[ /certificate/find where !revoked !ca !scep-url expires-after<$CertRenewTime ] do={
     :local CertVal [ /certificate/get $Cert ];
 
     :do {
       :if ([ :len $CertRenewUrl ] = 0) do={
-        $LogPrintOnce info $ScriptName ("No CertRenewUrl given.");
+        $LogPrint info $ScriptName ("No CertRenewUrl given.");
         :error false;
       }
       $LogPrint info $ScriptName ("Attempting to renew certificate '" . ($CertVal->"name") . "'.");
index bbfc28e9784845c34d6530e86c65646c27224e57..6b031c21ff14fa9e47ea571de83953470a6b1184 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/203/0fd482ff";
+:global CommitId "main/204/e3bdf105";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:25:02 01.04.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 05:30:03 01.04.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;