diff options
author | Christian Hesse <mail@eworm.de> | 2022-09-25 18:57:00 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-09-25 22:18:44 +0200 |
commit | 5120aa096f3b5479797b1361b08044959675cdb5 (patch) | |
tree | 8875d7c05f52a0b56d02fcb4bcdb15a3de8f55c3 /global-functions | |
parent | 10bf3c758fb4f92e0b66719c98eba3d7be98ef81 (diff) |
global-functions: $ScriptInstallUpdate: drop code for permission workaround
This is no longer used as 'netwatch-syslog' is gone.
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 1 insertions, 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; } |