tomcat6 doesn't configure cleanly with JAVA_OPTS having values with slashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: tomcat6
Dear Colleagues,
during security update of tomcat6 on maverick (and the same will happen everywhere), when you have a JAVA_OPTS line with something like that
JAVA_OPTS=
the sed call of :
tmpfile=`mktemp /tmp/tomcat6.
chmod 644 $tmpfile
cat $TEMPLATE \
| sed "s/^TOMCAT6_
| sed "s/^TOMCAT6_
| sed "s/^JAVA_
>> $tmpfile
will fail because of the slashes.
Those slashes are not escaped properly.
Adding a line with:
db_get tomcat6/javaopts && JAVA_OPTS="$RET" || JAVA_OPTS=
helps here.
Please find attached the patched maverick tomcat6 src package with postinst fixed.
It needs to be done for lucid and natty and other releases too.
Regards,
\sh
Fixed in Natty in as bug 654549, you should nominate against Maverick/Lucid there.