aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-05-17 16:34:09 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-05-17 16:34:09 +0300
commitbb2c9e35cd16f12ec085a4ab46b7744a556a7f1a (patch)
tree0f8d9ef2ed37e1e99813ed83b25969ea503689ef
parentcf48db9c8a4eb204af72363040e9adc4b1945dca (diff)
downloadbeam-bb2c9e35cd16f12ec085a4ab46b7744a556a7f1a.tar.gz
beam-bb2c9e35cd16f12ec085a4ab46b7744a556a7f1a.tar.bz2
Minor fixes.
* backup.in: Set and restore traps. * restore.in: Restore trap after executing epilogue_hook.
-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.