~ubuntu-branches/ubuntu/natty/tomcat6/natty-proposed

« back to all changes in this revision

Viewing changes to debian/tomcat6.postrm

  • Committer: Bazaar Package Importer
  • Author(s): tony mancill, Thierry Carrez (ttx), tony mancill
  • Date: 2010-12-04 17:20:11 UTC
  • mfrom: (2.2.22 sid)
  • Revision ID: james.westby@ubuntu.com-20101204172011-bzfa4212rhahii7s
Tags: 6.0.28-8
* Team upload.

[ Thierry Carrez (ttx) ]
* Do not fail to purge if /etc/tomcat6 was manually removed (LP: #648619)
* Add missing -p option in start-stop-daemon when starting tomcat6 to avoid
  failing to start due to /bin/bash running (LP: #632554)
* Fix build failure (missing TraXLiaison class) by adding ant-nodeps
  to the classpath.

[ tony mancill ]
* Use debconf to determine tomcat6 user and group to delete upon purge.
  Thanks to Misha Koshelev.  (Closes: #599458)
* Add tomcat-native to Suggests: for tomcat6 binary package. 
  Thanks to Eddy Petrisor  (Closes: #600590)
* Add Danish debconf template translation.
  Thanks to Joe Dalton (Closes: #605070)
* Actually add the Czech debconf template translation. 
  Thanks this time to Christian PERRIER (Closes: #597863)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
          /etc/tomcat6/Catalina/localhost /etc/tomcat6/Catalina /etc/tomcat6
57
57
        # Put all files owned by group tomcat6 back into root group before deleting
58
58
        # the tomcat6 user and group
59
 
        chown -Rhf root:root /etc/tomcat6/
 
59
        chown -Rhf root:root /etc/tomcat6/ || true
60
60
        # Remove user/group and log files (don't remove everything under
61
61
        # /var/lib/tomcat6 because there might be user-installed webapps)
62
 
        deluser tomcat6
63
 
        delgroup tomcat6
 
62
        db_get tomcat6/username && TOMCAT6_USER="$RET" || TOMCAT6_USER="tomcat6"
 
63
        db_get tomcat6/groupname && TOMCAT6_GROUP="$RET" || TOMCAT6_GROUP="tomcat6"
 
64
        deluser $TOMCAT6_USER
 
65
        delgroup $TOMCAT6_GROUP
 
66
 
64
67
        set -e
65
68
    ;;
66
69