Public bug reported:
This happens in precise:
If you create a Duply pre-script which reads
exit 1
then a run of "duply srv pre" will give
--- Start running command PRE at 12:58:29.630 ---
Running '/root/.duply/srv/pre' - FAILED (code 1)
--- Finished state OK at 12:58:29.638 - Runtime 00:00:00.008 ---
root@nas:~# echo $?
0
So there is no easy way to detect a failure of the pre script and the
same applies to post. This has already been fixed upstream and I'll
attach a patch that fixes this issue. With the patch applied, the
outcome is
--- Start running command PRE at 13:02:03.643 ---
Running '/root/.duply/srv/pre' - FAILED (code 1)
13:02:03.652 Task 'PRE' failed with exit code '1'.
--- Finished state FAILED 'code 1' at 13:02:03.652 - Runtime 00:00:00.009 ---
root@nas:~# echo $?
1
** Affects: duply (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "Backport of the upstream fix"
https://bugs.launchpad.net/bugs/1163905/+attachment/3617775/+files/duply-pre-result.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1163905
Title:
Backport-Request: Failure in Duply's pre-scripts are muted
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/duply/+bug/1163905/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs