accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1428054 - in /accumulo/branches/1.4/src/packages/deb: accumulo-native/postinst accumulo/postinst
Date Wed, 02 Jan 2013 21:17:46 GMT
Author: vines
Date: Wed Jan  2 21:17:46 2013
New Revision: 1428054

URL: http://svn.apache.org/viewvc?rev=1428054&view=rev
Log:
ACCUMULO-788 - quoting JAVA_HOME


Modified:
    accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst
    accumulo/branches/1.4/src/packages/deb/accumulo/postinst

Modified: accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst?rev=1428054&r1=1428053&r2=1428054&view=diff
==============================================================================
--- accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst (original)
+++ accumulo/branches/1.4/src/packages/deb/accumulo-native/postinst Wed Jan  2 21:17:46 2013
@@ -16,7 +16,7 @@
 # limitations under the License.
 
 # postinst script for Apache Accumulo native libraries
-if [ -z $JAVA_HOME -o ! -f $JAVA_HOME/jre/bin/ ] ; then
+if [ -z "$JAVA_HOME" -o ! -f "$JAVA_HOME/jre/bin/" ] ; then
   JAVA_HOME=`readlink -f /usr/bin/java`
   JAVA_HOME=`dirname $JAVA_HOME`
   JAVA_HOME=`cd $JAVA_HOME/../../; pwd`

Modified: accumulo/branches/1.4/src/packages/deb/accumulo/postinst
URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/src/packages/deb/accumulo/postinst?rev=1428054&r1=1428053&r2=1428054&view=diff
==============================================================================
--- accumulo/branches/1.4/src/packages/deb/accumulo/postinst (original)
+++ accumulo/branches/1.4/src/packages/deb/accumulo/postinst Wed Jan  2 21:17:46 2013
@@ -26,7 +26,7 @@ mkdir -p /var/lib/accumulo/walogs
 ln -fs /var/log/accumulo/logs /usr/lib/accumulo/logs 
 ln -fs /var/lib/accumulo/walogs /usr/lib/accumulo/walogs 
 
-if [ -z $JAVA_HOME -o ! -f $JAVA_HOME/jre/bin/ ] ; then
+if [ -z "$JAVA_HOME" -o ! -f "$JAVA_HOME/jre/bin/" ] ; then
   JAVA_HOME=`readlink -f /usr/bin/java`
   JAVA_HOME=`dirname $JAVA_HOME`
   JAVA_HOME=`cd $JAVA_HOME/../../; pwd`



Mime
View raw message