Postinst fails if webapps/ROOT is a symlink

Bug #662638 reported by Disconnect on 2010-10-18
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat6 (Ubuntu)
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)

Mathias Gug (mathiaz) on 2010-10-19
Changed in tomcat6 (Ubuntu):
importance: Undecided → Low
Thierry Carrez (ttx) on 2010-10-20
Changed in tomcat6 (Ubuntu):
status: New → Confirmed
Disconnect (dismc) wrote :

Still broken in 1.6.

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  Edit
Everyone can see this information.

Other bug subscribers