mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $ScriptInstallUpdate: drop code for permission workaround
This is no longer used as 'netwatch-syslog' is gone.
This commit is contained in:
@ -744,11 +744,8 @@
|
|||||||
:if ($SourceNew != $ScriptVal->"source") do={
|
:if ($SourceNew != $ScriptVal->"source") do={
|
||||||
:if ([ :pick $SourceNew 0 18 ] = "#!rsc by RouterOS\n") do={
|
:if ([ :pick $SourceNew 0 18 ] = "#!rsc by RouterOS\n") do={
|
||||||
:if ([ $ValidateSyntax $SourceNew ] = true) do={
|
:if ([ $ValidateSyntax $SourceNew ] = true) do={
|
||||||
:local DontRequirePermissions \
|
|
||||||
($SourceNew~"\n# requires: dont-require-permissions=yes\n");
|
|
||||||
$LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false;
|
$LogPrintExit2 info $0 ("Updating script: " . $ScriptVal->"name") false;
|
||||||
/system/script/set owner=($ScriptVal->"name") source=$SourceNew \
|
/system/script/set owner=($ScriptVal->"name") source=$SourceNew $Script;
|
||||||
dont-require-permissions=$DontRequirePermissions $Script;
|
|
||||||
:if ($ScriptVal->"name" = "global-config") do={
|
:if ($ScriptVal->"name" = "global-config") do={
|
||||||
:set ReloadGlobalConfig true;
|
:set ReloadGlobalConfig true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user