[Bug 690138] Re: tomcat6 installation failure on Ubuntu 10.10

Juha Litola 690138 at bugs.launchpad.net
Tue Dec 14 14:37:01 GMT 2010


Hi,

I'm not sure whether this is invalid, as it will affect anyone who
happens to have '/' character in the JAVA_OPTS, and I guess it is not
that rare. Postinstall should escape those strings before it puts them
to sed command line. I'm not sed expert, but it could be done with
something like below. Or at least one could replace '/' as control
character in substitution with '#' or some other rarer character.

juha at intra ~% export BAR=bar
juha at intra ~% echo foo | sed "s/foo/$BAR/"
bar
juha at intra ~% export BAR=bar/bar
juha at intra ~% echo foo | sed "s/foo/`$BAR/"
sed: -e expression #1, char 11: unknown option to `s'
juha at intra ~% echo foo | sed 's/foo/'`echo -n $BAR | sed 's#/#\\\/#g'`'/'
bar/bar

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

Title:
  tomcat6 installation failure on Ubuntu 10.10



More information about the Ubuntu-server-bugs mailing list