[Bug 708572] [NEW] tomcat6 postinst script err (sed)
jmullee
708572 at bugs.launchpad.net
Thu Jan 27 11:19:58 UTC 2011
Public bug reported:
Binary package hint: tomcat6
problem occurred parsing this in /var/lib/dpkg/info/tomcat6.postinst
dpkg --configure --pending
sed: -e expression #1, char 175: unknown option to `s'
my defaults file is modified like this :
john at box# tail /etc/default/tomcat6
# Enabling JMX
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9003"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.password.file=/etc/tomcat6/jmxremote.password"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.access.file=/etc/tomcat6/jmxremote.access"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
.. so I edited /var/lib/dpkg/info/tomcat6.postinst to make the sed command use a different delimiter, because the
jmxremote.*.file lines (above) contain forward-slashes that are being interpreted as delimiters by sed.
prev
cat $TEMPLATE \
| sed "s/^TOMCAT6_USER=.*$/TOMCAT6_USER=$TOMCAT6_USER/" \
| sed "s/^TOMCAT6_GROUP=.*$/TOMCAT6_GROUP=$TOMCAT6_GROUP/" \
| sed "s/^JAVA_OPTS=.*$/JAVA_OPTS=\"$JAVA_OPTS\"/" \
fixed
cat $TEMPLATE \
| sed "s|^TOMCAT6_USER=.*$|TOMCAT6_USER=$TOMCAT6_USER|" \
| sed "s|^TOMCAT6_GROUP=.*$|TOMCAT6_GROUP=$TOMCAT6_GROUP|" \
| sed "s|^JAVA_OPTS=.*$|JAVA_OPTS=\"$JAVA_OPTS\"|" \
- john.. 2011-01-27
** Affects: tomcat6 (Ubuntu)
Importance: Undecided
Status: New
** Tags: default postinst sed tomcat6
--
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/708572
Title:
tomcat6 postinst script err (sed)
More information about the Ubuntu-server-bugs
mailing list