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

diff --git a/html/.#AM-CertsRenew.rsc b/html/.#AM-CertsRenew.rsc
deleted file mode 120000 (symlink)
index 1432553..0000000
+++ /dev/null
@@ -1 +0,0 @@
-root@amster.4184617
\ No newline at end of file
index e78669f4aae0f7de1882cc512a87dc9172c5429d..f15bca9829dc7d481860236d423ff28001ed57f4 100644 (file)
@@ -1,17 +1,15 @@
-#!rsc by RouterOS
-# RouterOS script: certificate-renew-issued
-# Copyright (c) 2019-2026 Christian Hesse <mail@eworm.de>
-# https://rsc.eworm.de/COPYING.md
+#!rsc by Vados
+# RouterOS script: AM-CertsRenew
+# Script comment: Renew locally issued certificates
+# Copyright (c) 2005-2026 Vados <vados@vados.ru>
+#
 #
 # requires RouterOS, version=7.19
 #
-# renew locally issued certificates
-# https://rsc.eworm.de/doc/certificate-renew-issued.md
-
 :local ExitOK false;
 :onerror Err {
-  :global GlobalConfigReady; :global GlobalFunctionsReady;
-  :retry { :if ($GlobalConfigReady != true || $GlobalFunctionsReady != true) \
+  :global GlobalConfReady; :global GlobalFuncReady;
+  :retry { :if ($GlobalConfReady != true || $GlobalFuncReady != true) \
       do={ :error ("Global config and/or functions not ready."); }; } delay=500ms max=50;
   :local ScriptName [ :jobname ];
 
   :global MkDir;
   :global ScriptLock;
 
+# Add this Script scheduler
+:if ([ :len [ /system/scheduler/find where name=$ScriptName ] ] = 0) do={
+:log warning ("System Scheduler for script: " . $ScriptName . " is NOT SET! Fix It Now!");
+:local OnEvent "/system/script/run $ScriptName;";
+:local Comment "Every Day Check For Update Local Issued Certificates.";
+#/system/scheduler/add name=$ScriptName comment=$Comment start-time=startup interval=1d on-event=$OnEvent;
+}
+
   :if ([ $ScriptLock $ScriptName ] = false) do={
     :set ExitOK true;
     :error false;
index 2dc33ccfed2deb355726ec7403a0503ce1229661..17f6bc40f26cfcf305aef08fcee919c1ee43816c 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/213/90bd9db0";
+:global CommitId "main/214/0667a5b4";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:30:02 01.04.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:35:03 01.04.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;