jitsi.sh 825 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. CLIENTARGS=""
  3. uname -m | grep i686 && CLIENTARGS="-client -Xmx256m"
  4. if [[ -n ${JAVA_HOME} ]]; then
  5. JAVABIN="${JAVA_HOME}/bin/java"
  6. else
  7. JAVABIN="/usr/lib/jvm/java-8-openjdk/bin/java"
  8. fi
  9. SCDIR=/usr/lib/jitsi
  10. LIBPATH="${SCDIR}/lib"
  11. CLASSPATH="${LIBPATH}/felix.jar:${SCDIR}/sc-bundles/sc-launcher.jar:${SCDIR}/sc-bundles/util.jar:${SCDIR}/sc-bundles/dnsjava.jar:${LIBPATH}"
  12. FELIX_CONFIG="${LIBPATH}/felix.client.run.properties"
  13. LOG_CONFIG="${LIBPATH}/logging.properties"
  14. COMMAND="${JAVABIN} ${CLIENTARGS} -classpath ${CLASSPATH} -Djna.library.path=${LIBPATH}/native -Dfelix.config.properties=file:${FELIX_CONFIG} -Djava.util.logging.config.file=${LOG_CONFIG} net.java.sip.communicator.launcher.SIPCommunicator"
  15. export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${LIBPATH}/native"
  16. cd "${SCDIR}"
  17. exec ${COMMAND} $*