mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
backup-partition: make sure to remove the scheduler on failure
This commit is contained in:
parent
7b30af90b7
commit
c21da0454b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue