mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
backup-partition: make sure to remove the scheduler on failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user