mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-26 05:44:39 +02:00
global-functions: $ScriptInstallUpdate: drop code for permission workaround
This is no longer used as 'netwatch-syslog' is gone.
This commit is contained in:
parent
10bf3c758f
commit
5120aa096f
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue