From a1b357603d2ea6432448d8a92f9b1a25a643f28d Mon Sep 17 00:00:00 2001 From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Wed, 1 Apr 2026 06:35:03 +0300 Subject: [PATCH] Autocommit in repo: ros.vados.ru, generated by owner: root, in 06:35:03 01.04.2026. --- html/.#AM-CertsRenew.rsc | 1 - html/AM-CertsRenew.rsc | 24 +++++++++++++++--------- html/AM-GlobalFunc.rsc | 4 ++-- 3 files changed, 17 insertions(+), 12 deletions(-) delete mode 120000 html/.#AM-CertsRenew.rsc diff --git a/html/.#AM-CertsRenew.rsc b/html/.#AM-CertsRenew.rsc deleted file mode 120000 index 14325530d..000000000 --- a/html/.#AM-CertsRenew.rsc +++ /dev/null @@ -1 +0,0 @@ -root@amster.4184617 \ No newline at end of file diff --git a/html/AM-CertsRenew.rsc b/html/AM-CertsRenew.rsc index e78669f4a..f15bca982 100644 --- a/html/AM-CertsRenew.rsc +++ b/html/AM-CertsRenew.rsc @@ -1,17 +1,15 @@ -#!rsc by RouterOS -# RouterOS script: certificate-renew-issued -# Copyright (c) 2019-2026 Christian Hesse -# https://rsc.eworm.de/COPYING.md +#!rsc by Vados +# RouterOS script: AM-CertsRenew +# Script comment: Renew locally issued certificates +# Copyright (c) 2005-2026 Vados +# # # 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 ]; @@ -21,6 +19,14 @@ :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; diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index 2dc33ccfe..17f6bc40f 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -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; -- 2.52.0