Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #933 from trevorackerman/gh-932
Browse files Browse the repository at this point in the history
Add post uninstall step that removes old exploded ROOT.war directory
  • Loading branch information
elsloo committed Jan 14, 2016
2 parents 70c548b + ff54f8e commit 77050ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions traffic_monitor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@
<preremoveScriptlet>
<scriptFile>src/main/scripts/preremove.sh</scriptFile>
</preremoveScriptlet>
<postremoveScriptlet>
<scriptFile>src/main/scripts/postremove.sh</scriptFile>
</postremoveScriptlet>
</configuration>
</plugin>
</plugins>
Expand Down
5 changes: 5 additions & 0 deletions traffic_monitor/src/main/scripts/postremove.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# Get rid of exploded war file directory, but leave everything else untouched because this runs after the install
# steps during an upgrade (http://www.ibm.com/developerworks/library/l-rpm2/)
rm -rf /opt/traffic_monitor/webapps/ROOT

0 comments on commit 77050ed

Please sign in to comment.