mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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.
This commit is contained in:
parent
f015f5f012
commit
49a83682c3
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue