mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	updating cloud-usage.rc file to start cloudstack-usage server with java 1.7
This commit is contained in:
		
							parent
							
								
									57110a7f50
								
							
						
					
					
						commit
						d0c249bc9e
					
				| @ -47,7 +47,7 @@ unset OPTIONS | |||||||
| [ -r /etc/sysconfig/default/"$SHORTNAME" ] && source /etc/sysconfig/default/"$SHORTNAME" | [ -r /etc/sysconfig/default/"$SHORTNAME" ] && source /etc/sysconfig/default/"$SHORTNAME" | ||||||
| 
 | 
 | ||||||
| # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in $DEFAULT) | # The first existing directory is used for JAVA_HOME (if JAVA_HOME is not defined in $DEFAULT) | ||||||
| JDK_DIRS="/usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-openjdk-i386 /usr/lib/jvm/java-6-openjdk-amd64 /usr/lib/jvm/java-6-sun /usr/lib/jvm/jre-1.6.0 /usr/lib/j2sdk1.5-sun /usr/lib/jre-openjdk" | JDK_DIRS="/usr/lib/jvm/java-7-openjdk /usr/lib/jvm/java-7-openjdk-i386 /usr/lib/jvm/java-7-openjdk-amd64 /usr/lib/jvm/java-7-sun /usr/lib/jvm/jre-1.7.0 /usr/lib/j2sdk1.5-sun /usr/lib/jre-openjdk" | ||||||
| 
 | 
 | ||||||
| for jdir in $JDK_DIRS; do | for jdir in $JDK_DIRS; do | ||||||
|     if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then |     if [ -r "$jdir/bin/java" -a -z "${JAVA_HOME}" ]; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user