Skip to content

Commit 5120aa0

Browse files
committed
global-functions: $ScriptInstallUpdate: drop code for permission workaround
This is no longer used as 'netwatch-syslog' is gone.
1 parent 10bf3c7 commit 5120aa0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

global-functions

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,8 @@
744744
:if ($SourceNew != $ScriptVal->"source") do={
745745
:if ([ :pick $SourceNew 0 18 ] = "#!rsc by RouterOS\n") do={
746746
:if ([ $ValidateSyntax $SourceNew ] = true) do={
747-
:local DontRequirePermissions \
748-
($SourceNew~"\n# requires: dont-require-permissions=yes\n");
749747
$LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false;
750-
/system/script/set owner=($ScriptVal->"name") source=$SourceNew \
751-
dont-require-permissions=$DontRequirePermissions $Script;
748+
/system/script/set owner=($ScriptVal->"name") source=$SourceNew $Script;
752749
:if ($ScriptVal->"name" = "global-config") do={
753750
:set ReloadGlobalConfig true;
754751
}

0 commit comments

Comments
 (0)