Skip to content

Commit

Permalink
Closes-Bug: #1492063 - Avoiding manual steps during upgrade/purge usi…
Browse files Browse the repository at this point in the history
…ng preinst/postrm scripts

These scripts clean up the leftover /opt/contrail/contrail_server_manager folder created by installer deb
The purge of installer deb doesn't autoremove this dir due to creation of Packages.gz

Change-Id: If5f7786eee6a37112ca45e769174fea2dc93fb77
  • Loading branch information
nitishkrishna committed Sep 4, 2015
1 parent 2868200 commit 2c3f954
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/debian/contrail-server-manager-installer/debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Sample debian/rules that uses debhelper.
#!/bin/sh
set -e

echo "running post rm"
rm -rf /opt/contrail/contrail_server_manager/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Sample debian/rules that uses debhelper.
#!/bin/sh
set -e

echo "running pre install"
rm -rf /opt/contrail/contrail_server_manager/

0 comments on commit 2c3f954

Please sign in to comment.