mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 11:34:31 +02:00
script-updates: run global-functions on update
This commit is contained in:
parent
5a6650b40e
commit
b62f9b7a65
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@
|
||||||
:log info ("Updating script: " . $scriptname);
|
:log info ("Updating script: " . $scriptname);
|
||||||
/ system script set owner=$scriptname source=$sourcenew \
|
/ system script set owner=$scriptname source=$sourcenew \
|
||||||
dont-require-permissions=$"dont-require-permissions" $script;
|
dont-require-permissions=$"dont-require-permissions" $script;
|
||||||
|
:if ($scriptname = "global-functions") do={
|
||||||
|
/ system script run global-functions;
|
||||||
|
}
|
||||||
} else={
|
} else={
|
||||||
:log debug ("Script " . $scriptname . " did not change");
|
:log debug ("Script " . $scriptname . " did not change");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue