~ubuntu-branches/ubuntu/maverick/tomcat6/maverick-proposed

« back to all changes in this revision

Viewing changes to debian/tomcat6.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez (ttx)
  • Date: 2010-08-25 09:07:03 UTC
  • Revision ID: james.westby@ubuntu.com-20100825090703-4d8h01c1kijyqw7v
Tags: 6.0.28-2ubuntu1
Check for group existence to avoid postinst failure (LP: #611721)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        ucf --debconf-ok --sum-file /usr/share/tomcat6/defaults.md5sum $tmpfile $CONFFILE
26
26
        rm -f $tmpfile
27
27
 
28
 
        addgroup --system "$TOMCAT6_GROUP" --quiet
 
28
        if ! getent group "$TOMCAT6_GROUP" > /dev/null 2>&1 ; then
 
29
            addgroup --system "$TOMCAT6_GROUP" --quiet
 
30
        fi
29
31
        if ! id $TOMCAT6_USER > /dev/null 2>&1 ; then
30
32
            adduser --system --home /usr/share/tomcat6 --no-create-home \
31
33
                --ingroup "$TOMCAT6_GROUP" --disabled-password --shell /bin/false \