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: mp+290919@code.launchpad.net

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
=== renamed file 'debian/unity8-lxc.postrm' => 'debian/unity8-lxc.prerm'
--- debian/unity8-lxc.postrm 2014-11-20 14:32:53 +0000
+++ debian/unity8-lxc.prerm 2016-04-04 20:55:57 +0000
@@ -4,7 +4,7 @@
44
5CONTAINER_NAME="unity8-lxc"5CONTAINER_NAME="unity8-lxc"
66
7if [ "$1" = "purge" ]; then7if [ "$1" = "remove" ]; then
8 if [ -d /var/lib/lxc/$CONTAINER_NAME ]; then8 if [ -d /var/lib/lxc/$CONTAINER_NAME ]; then
9 lxc-destroy -n $CONTAINER_NAME -f9 lxc-destroy -n $CONTAINER_NAME -f
10 fi10 fi

Subscribers

People subscribed via source and target branches