backup-partition: make sure to remove the scheduler on failure

This commit is contained in:
Christian Hesse 2024-02-02 11:07:36 +01:00
parent 7b30af90b7
commit c21da0454b

View file

@ -39,6 +39,7 @@ $ScriptLock $0;
$LogPrintExit2 info $0 ("Saved configuration to partition '" . \
$FallbackTo . "'.") false;
} on-error={
/system/scheduler/remove [ find where name="running-from-backup-partition" ];
$LogPrintExit2 error $0 ("Failed saving configuration to partition '" . \
$FallbackTo . "'!") true;
}