aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-01-24 11:47:26 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-01-24 11:47:26 +0100
commit49a83682c352b7f31a0f5ff502ee9fc62246773d (patch)
treee9d4939dae41a03ca24251e2ac374428093eb8b3
parentf015f5f0123ca222e9a85ed051c4ae2141634f9f (diff)
INITIAL-COMMANDS: remove before adding...
... to make sure it does not fail on (partly) installed scripts. This should work to fix borked base installation now.
-rw-r--r--INITIAL-COMMANDS.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/INITIAL-COMMANDS.md b/INITIAL-COMMANDS.md
index dfdcddc..ba182eb 100644
--- a/INITIAL-COMMANDS.md
+++ b/INITIAL-COMMANDS.md
@@ -19,9 +19,11 @@ Run the complete base installation:
/file/remove "letsencrypt-E1.pem";
:delay 1s;
:foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={
+ /system/script/remove [ find where name=$Script ];
/system/script/add name=$Script owner=$Script source=([ /tool/fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . ".rsc") output=user as-value]->"data");
};
/system/script { run global-config; run global-functions; };
+ /system/scheduler/remove [ find where name="global-scripts" ];
/system/scheduler/add name="global-scripts" start-time=startup on-event="/system/script { run global-config; run global-functions; }";
:global CertificateNameByCN;
$CertificateNameByCN "E1";