Merge lp:~townsend/unity8-preview-lxc/fix-postrm into lp:unity8-preview-lxc

Proposed by Christopher Townsend
Status: Merged
Approved by: Christopher Townsend
Approved revision: 80
Merged at revision: 81
Proposed branch: lp:~townsend/unity8-preview-lxc/fix-postrm
Merge into: lp:unity8-preview-lxc
Diff against target: 12 lines (+1/-1)
1 file modified
debian/unity8-lxc.prerm (+1/-1)
To merge this branch: bzr merge lp:~townsend/unity8-preview-lxc/fix-postrm
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Review via email:

Commit message

Move the postrm script to prerm script as we need to use lxc-destroy before packages and files are purged.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

This was already approved by Stephen in a different MP that I had to delete. Approving...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== renamed file 'debian/unity8-lxc.postrm' => 'debian/unity8-lxc.prerm'
2--- debian/unity8-lxc.postrm 2014-11-20 14:32:53 +0000
3+++ debian/unity8-lxc.prerm 2016-04-04 20:55:57 +0000
4@@ -4,7 +4,7 @@
6 CONTAINER_NAME="unity8-lxc"
8-if [ "$1" = "purge" ]; then
9+if [ "$1" = "remove" ]; then
10 if [ -d /var/lib/lxc/$CONTAINER_NAME ]; then
11 lxc-destroy -n $CONTAINER_NAME -f
12 fi


People subscribed via source and target branches