mirror of
				https://github.com/eworm-de/routeros-scripts.git
				synced 2024-05-11 05:55:19 +00:00 
			
		
		
		
	global-functions: drop support for attachment in notification e-mail
This commit is contained in:
		@@ -55,7 +55,7 @@
 | 
			
		||||
    $LogPrintExit info ("Version " . $Update->"latest-version" . " is a patch release, updating...") false;
 | 
			
		||||
    $SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
 | 
			
		||||
        ("Version " . $Update->"latest-version" . " is a patch update for " . $Update->"channel" . \
 | 
			
		||||
        ", updating on " . $Identity . "...") $Link "" "true";
 | 
			
		||||
        ", updating on " . $Identity . "...") $Link "true";
 | 
			
		||||
    $DoUpdate;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
    $LogPrintExit info ("Seen a neighbor running version " . $Update->"latest-version" . ", updating...") false;
 | 
			
		||||
    $SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
 | 
			
		||||
        ("Seen a neighbor running version " . $Update->"latest-version" . " from " . $Update->"channel" . \
 | 
			
		||||
        ", updating on " . $Identity . "...") $Link "" "true";
 | 
			
		||||
        ", updating on " . $Identity . "...") $Link "true";
 | 
			
		||||
    $DoUpdate;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -81,7 +81,7 @@
 | 
			
		||||
      $LogPrintExit info ("Version " . $Update->"latest-version" . " is considered safe, updating...") false;
 | 
			
		||||
      $SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
 | 
			
		||||
          ("Version " . $Update->"latest-version" . " is considered safe for " . $Update->"channel" . \
 | 
			
		||||
          ", updating on " . $Identity . "...") $Link "" "true";
 | 
			
		||||
          ", updating on " . $Identity . "...") $Link "true";
 | 
			
		||||
      $DoUpdate;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
@@ -103,7 +103,7 @@
 | 
			
		||||
  $SendNotification ([ $SymbolForNotification "sparkles" ] . "RouterOS update") \
 | 
			
		||||
    ("A new RouterOS version " . ($Update->"latest-version") . \
 | 
			
		||||
      " is available for " . $Identity . ".\n\n" . \
 | 
			
		||||
      [ $DeviceInfo ]) $Link "" "true";
 | 
			
		||||
      [ $DeviceInfo ]) $Link "true";
 | 
			
		||||
  :set SentRouterosUpdateNotification ($Update->"latest-version");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -116,7 +116,7 @@
 | 
			
		||||
  $SendNotification ([ $SymbolForNotification "warning-sign" ] . "RouterOS version") \
 | 
			
		||||
    ("A different RouterOS version " . ($Update->"latest-version") . \
 | 
			
		||||
      " is available for " . $Identity . ", but it is a downgrade.\n\n" . \
 | 
			
		||||
      [ $DeviceInfo ]) $Link "" "true";
 | 
			
		||||
      [ $DeviceInfo ]) $Link "true";
 | 
			
		||||
  $LogPrintExit info ("A different RouterOS version " . ($Update->"latest-version") . \
 | 
			
		||||
    " is available for downgrade.") false;
 | 
			
		||||
  :set SentRouterosUpdateNotification ($Update->"latest-version");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user