mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 02:04:56 +02:00
packages-update: refuse when running from backup partition
This commit is contained in:
parent
665516b33d
commit
ce2d090e99
1 changed files with 6 additions and 0 deletions
|
@ -50,6 +50,12 @@
|
|||
:error false;
|
||||
}
|
||||
|
||||
:if ([ :len [ /system/scheduler/find where name="running-from-backup-partition" ] ] > 0) do={
|
||||
$LogPrint warning $ScriptName ("Running from backup partition, refusing to act.");
|
||||
:set ExitOK true;
|
||||
:error false;
|
||||
}
|
||||
|
||||
:local Update [ /system/package/update/get ];
|
||||
|
||||
:if ([ :typeof ($Update->"latest-version") ] = "nothing") do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue