aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backup.in2
-rw-r--r--restore.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/backup.in b/backup.in
index f14850f..bdab347 100644
--- a/backup.in
+++ b/backup.in
@@ -95,6 +95,7 @@ fi
logit "started"
$prologue_hook
+test -z "$epilogue_hook" && trap "$epilogue_hook" EXIT INT QUIT TERM
for item in $backup_items
do
@@ -103,6 +104,7 @@ do
done
$epilogue_hook
+trap '' EXIT INT QUIT TERM
logit "finished"
diff --git a/restore.in b/restore.in
index ebcb3bc..74d63b0 100644
--- a/restore.in
+++ b/restore.in
@@ -133,6 +133,7 @@ do
done
$epilogue_hook
+trap '' EXIT INT QUIT TERM
logit "finished"

Return to:

Send suggestions and report system problems to the System administrator.