From 5120aa096f3b5479797b1361b08044959675cdb5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 25 Sep 2022 18:57:00 +0200 Subject: global-functions: $ScriptInstallUpdate: drop code for permission workaround This is no longer used as 'netwatch-syslog' is gone. --- global-functions | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/global-functions b/global-functions index e24cf3c..c9abf88 100644 --- a/global-functions +++ b/global-functions @@ -744,11 +744,8 @@ :if ($SourceNew != $ScriptVal->"source") do={ :if ([ :pick $SourceNew 0 18 ] = "#!rsc by RouterOS\n") do={ :if ([ $ValidateSyntax $SourceNew ] = true) do={ - :local DontRequirePermissions \ - ($SourceNew~"\n# requires: dont-require-permissions=yes\n"); $LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false; - /system/script/set owner=($ScriptVal->"name") source=$SourceNew \ - dont-require-permissions=$DontRequirePermissions $Script; + /system/script/set owner=($ScriptVal->"name") source=$SourceNew $Script; :if ($ScriptVal->"name" = "global-config") do={ :set ReloadGlobalConfig true; } -- cgit v1.2.3-70-g09d2