Merge lp:~townsend/unity8-preview-lxc/fix-package-purge into lp:unity8-preview-lxc/stable

Proposed by Christopher Townsend
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 64
Merged at revision: 64
Proposed branch: lp:~townsend/unity8-preview-lxc/fix-package-purge
Merge into: lp:unity8-preview-lxc/stable
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-package-purge
Reviewer Review Type Date Requested Status
Stephen M. Webb (community) Approve
Review via email: mp+291264@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
Stephen M. Webb (bregma) :
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-07 14:27:53 +0000
4@@ -4,7 +4,7 @@
5
6 CONTAINER_NAME="unity8-lxc"
7
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

Subscribers

People subscribed via source and target branches

to all changes: