]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 08:35:02 04.05.2026.
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 05:35:03 +0000 (08:35 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Mon, 4 May 2026 05:35:03 +0000 (08:35 +0300)
html/AM-GlobalFunc.rsc
html/AM-setup.rsc

index 875e69c6c728b5263b6c0f3033f1fd2eb3a775f0..e06ff627860f11cfed872c58b2d3332b6c8c47e5 100644 (file)
@@ -17,9 +17,9 @@
 :global GlobalFuncReady false;
 
 # Git commit id & info, expected configuration version
-:global CommitId "main/528/a6273d14";
+:global CommitId "main/529/575f9924";
 :global CommitTAG "unknown";
-:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 08:20:02 04.05.2026.";
+:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 08:35:02 04.05.2026.";
 
 # The variables are received right here.
 :global GlobalConfVersion 138;
index 3325f9062071e43668029b69546db3fd2e45ba06..fbbeecac533d1e6ed5e91f8cb1370c56eeeb829b 100644 (file)
@@ -37,7 +37,7 @@
 :global RemoveMe;\r
 :global RunOnce;\r
 :global InitSetup true;\r
-:global tmpfs true;\r
+:global tmpfs false;\r
 \r
 {\r
   :local RmMe [:tobool $1];\r
   :log warning ("\n\$GlobalScriptsUrl = " . $GlobalScriptsUrl);\r
   \r
   :local CertSettings [ /certificate/settings/get ];\r
-  :if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \\r
+  :if ([ :len [ /certificate/find where fingerprint=$CertFingerprint ] ] != 1) do={\r
+      :error "Something is wrong with your certificates!";\r
+    } else={\r
+    :if (!((($CertSettings->"builtin-trust-anchors") = "trusted" || \\r
           ($CertSettings->"builtin-trust-store") ~ "fetch" || \\r
           ($CertSettings->"builtin-trust-store") = "all") && \\r
          [ :len [ /certificate/builtin/find where common-name=$CertCommonName ] ] > 0)) do={\r
-    :put "Importing certificate...";\r
-    \r
-    /tool/fetch ($GlobalScriptsUrl . "certs/ipall/" . $CertFileName) dst-path=$CertFileName as-value;\r
-    :delay 1s;\r
-    /certificate/import file-name=$CertFileName passphrase="";\r
-    :if ([ :len [ /certificate/find where fingerprint=$CertFingerprint ] ] != 1) do={\r
-      :error "Something is wrong with your certificates!";\r
-    };\r
-    :delay 1s;\r
+        :put "Importing certificate...";\r
+        /tool/fetch ($GlobalScriptsUrl . "certs/ipall/" . $CertFileName) dst-path=$CertFileName as-value;\r
+        :delay 1s;\r
+        /certificate/import file-name=$CertFileName passphrase="";\r
+        :delay 1s;\r
+      };\r
   };\r
 \r
 :local MkTmpfs do={\r