** Description changed:

  Binary package hint: tomcat6
  
  In cases where the tomcat6 group already exists (eg ldap), the postinst fails 
due to running addgroup blindly.
  Commenting out the addgroup works fine, although that isn't a generic fix.
  
- >     addgroup --system "$TOMCAT6_GROUP" --quiet 
+ >     addgroup --system "$TOMCAT6_GROUP" --quiet
  >     if ! id $TOMCAT6_USER > /dev/null 2>&1 ; then
  
  (I had a better bug report with more detail, but the "no referrer" error
  ate it. Lovely..)
+ 
+ == SRU Report ==
+ Impact:
+ If the tomcat6 group already exists, tomcat6 will fail to install correctly.
+ 
+ Development branch fix:
+ Fix is in maverick as of 6.0.28-2ubuntu1
+ 
+ Minimal patch:
+ - addgroup --system "$TOMCAT6_GROUP" --quiet
+ + if ! getent group "$TOMCAT6_GROUP" > /dev/null 2>&1 ; then
+ +     addgroup --system "$TOMCAT6_GROUP" --quiet
+ + fi
+ 
+ TEST CASE:
+ $ sudo addgroup tomcat6
+ $ sudo apt-get install tomcat6
+ Affected version:
+ Tomcat fails to install (subprocess installed post-installation script 
returned error exit status 1)
+ Fixed version:
+ Tomcat installs successfully.
+ 
+ Regression potential:
+ Given the nature of the patch, it is minimal.

** Changed in: tomcat6 (Ubuntu Lucid)
     Assignee: (unassigned) => Thierry Carrez (ttx)

-- 
postinst fails if group exists
https://bugs.launchpad.net/bugs/611721
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to tomcat6 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to