aboutsummaryrefslogtreecommitdiffstats
path: root/backup-partition.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-02-02 11:07:36 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-02-02 12:53:45 +0100
commitc21da0454b60b45e5e8619c3327c3b4101d89e0c (patch)
tree0abbdb76fac38a5e3aa2ab3a1867bc7526734f20 /backup-partition.rsc
parent7b30af90b707e6b0fe8629722bd17605e1e09b93 (diff)
backup-partition: make sure to remove the scheduler on failure
Diffstat (limited to 'backup-partition.rsc')
-rw-r--r--backup-partition.rsc1
1 files changed, 1 insertions, 0 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc
index 0eaf166..1db5e1d 100644
--- a/backup-partition.rsc
+++ b/backup-partition.rsc
@@ -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;
}