: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;
: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