Postinst fails if webapps/ROOT is a symlink

Bug #662638 reported by Disconnect
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Binary package hint: tomcat6

Ubuntu Lucid, amd64, tomcat6 6.0.24-2ubuntu1.4

For historic reasons, we have /var/lib/tomcat6/webapps/ROOT as a symlink into the deployed application. During postinst, dpkg fails:

Setting up tomcat6 (6.0.24-2ubuntu1.4) ...
cp: cannot overwrite non-directory `/var/lib/tomcat6/webapps/ROOT' with directory `/usr/share/tomcat6/webapps/default_root'
dpkg: error processing tomcat6 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 tomcat6

Unless there is a policy reason, I would expect the postinst to ignore changes in /var/lib/tomcat6/webapps, especially since it is not listed as part of the package upstream/static files (dpkg -L tomcat6 | grep ROOT - no results)

Tags: patch
Mathias Gug (mathiaz)
Changed in tomcat6 (Ubuntu):
importance: Undecided → Low
Thierry Carrez (ttx)
Changed in tomcat6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Disconnect (dismc) wrote :

Still broken in 1.6.

Revision history for this message
Disconnect (dismc) wrote :

"if [ ! -d /var/lib/tomcat6/webapps/ROOT -a ! -L /var/lib/tomcat6/webapps/ROOT ]; then"

works fine
?field.comment="if [ ! -d /var/lib/tomcat6/webapps/ROOT -a ! -L /var/lib/tomcat6/webapps/ROOT ]; then"

works fine

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.