debian / rpm: When building the classpath in the init script strip last semi-column

Remove the trailing : so we don't get them double in the classpath
This commit is contained in:
Wido den Hollander 2013-03-01 16:45:40 +01:00
parent 24c974dc03
commit ee695ba2c8
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export JAVA_HOME
SCP=""
DCP=""
ACP=`ls /usr/share/cloudstack-agent/cloud-plugin-hypervisor-kvm-*.jar`":"`ls /usr/share/cloudstack-agent/lib/* | tr '\n' ':'`
ACP=`ls /usr/share/cloudstack-agent/cloud-plugin-hypervisor-kvm-*.jar`":"`ls /usr/share/cloudstack-agent/lib/* | tr '\n' ':' | sed s'/.$//'`
JCP="/usr/share/java/commons-daemon.jar"
# We need to append the JSVC daemon JAR to the classpath

View File

@ -55,7 +55,7 @@ for jdir in $JDK_DIRS; do
done
export JAVA_HOME
ACP=`ls /usr/share/cloudstack-agent/lib/* | tr '\n' ':'`
ACP=`ls /usr/share/cloudstack-agent/lib/* | tr '\n' ':' | sed s'/.$//'`
# We need to append the JSVC daemon JAR to the classpath
# AgentShell implements the JSVC daemon methods