mirror of
				https://github.com/eworm-de/routeros-scripts.git
				synced 2024-05-11 05:55:19 +00:00 
			
		
		
		
	README: install correct global-config-overlay for RouterOS v6
This commit is contained in:
		@@ -6,7 +6,14 @@ Initial commands
 | 
			
		||||
These command are inteneded for initial setup. If you are not aware of the
 | 
			
		||||
procedure please follow [the long way in detail](README.md#the-long-way-in-detail).
 | 
			
		||||
 | 
			
		||||
One extra step is required if you run RouterOS v6:
 | 
			
		||||
 | 
			
		||||
    :global ScriptUpdatesUrlSuffix "\?h=routeros-v6";
 | 
			
		||||
 | 
			
		||||
Then run the complete base installation:
 | 
			
		||||
 | 
			
		||||
    {
 | 
			
		||||
      :global ScriptUpdatesUrlSuffix;
 | 
			
		||||
      / tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/R3.pem" dst-path="letsencrypt-R3.pem" as-value;
 | 
			
		||||
      :delay 1s;
 | 
			
		||||
      / certificate import file-name=letsencrypt-R3.pem passphrase="";
 | 
			
		||||
@@ -15,7 +22,7 @@ procedure please follow [the long way in detail](README.md#the-long-way-in-detai
 | 
			
		||||
      };
 | 
			
		||||
      / file remove "letsencrypt-R3.pem";
 | 
			
		||||
      :foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={
 | 
			
		||||
        / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data");
 | 
			
		||||
        / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . $ScriptUpdatesUrlSuffix) output=user as-value]->"data");
 | 
			
		||||
      };
 | 
			
		||||
      / system script { run global-config; run global-functions; };
 | 
			
		||||
      / system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-functions; }";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user