packages-update: refuse when running from backup partition

This commit is contained in:
Christian Hesse 2025-01-06 09:31:13 +01:00
parent 665516b33d
commit ce2d090e99

View file

@ -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={