Public bug reported:

Many variables defined in /etc/default/tomcat7 are overridden in
/etc/init.d/tomcat7.  In short, they cannot be set in
/etc/default/tomcat7.  These are: TOMCAT7_USER, TOMCAT7_GROUP,
TOMCAT7_SECURITY, JVM_TMP, and JAVA_HOME.

If empty, JVM_TMP was set to "/etc/tomcat7-$NAME-tmp".  With
NAME="tomcat7", this was redundant and I fixed it to match what is
documented in /etc/default/tomcat7.

In the (temporary) logic to set JAVA_HOME, there was an error in
enumerating the java-7-openjdk's.  The error caused the enumerated list
to only be the last directory discovered.  I fixed the error to match
the logic for the java-6-openjdk's.

Lastly, the "auto-generate" message for the policies is hardcoded.  I
added logic to list both the logical path and, if different, the
physical path to the policy.d directory.

** Affects: tomcat7 (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "tomcat7.diff"
   
https://bugs.launchpad.net/bugs/1354193/+attachment/4172311/+files/tomcat7.diff

** Description changed:

- Many variables defined in /etc/default/tomcat7 are overridden
+ Many variables defined in /etc/default/tomcat7 are overridden in
  /etc/init.d/tomcat7.  In short, they cannot be set in
  /etc/default/tomcat7.  These are: TOMCAT7_USER, TOMCAT7_GROUP,
  TOMCAT7_SECURITY, JVM_TMP, and JAVA_HOME.
  
  If empty, JVM_TMP was set to "/etc/tomcat7-$NAME-tmp".  With
  NAME="tomcat7", this was redundant and I fixed it to match what is
  documented in /etc/default/tomcat7.
  
  In the (temporary) logic to set JAVA_HOME, there was an error in
  enumerating the java-7-openjdk's.  The error caused the enumerated list
  to only be the last directory discovered.  I fixed the error to match
  the logic for the java-6-openjdk's.
+ 
+ Lastly, the "auto-generate" message for the policies is hardcoded.  I
+ added logic to list both the logical path and, if different, the
+ physical path to the policy.d directory.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1354193

Title:
  Variables in /etc/default/tomcat7 overridden in /etc/init.d/tomcat7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1354193/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to