1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-04 06:42:20 -05:00

Improve DavMail shell scripts

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2113 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-05-11 19:45:17 +00:00
parent d6c567001d
commit 94c5256100
2 changed files with 8 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh
# Ubuntu setup instructions :
# install java :
# sudo apt-get install sun-java6-bin
# launch davmail :
# sudo apt-get install default-jre
# launch davmail
BASE=`dirname $0`
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1

View File

@ -1,4 +1,7 @@
#!/bin/sh
#
# Usage: davmail [</path/to/davmail.properties>]
#
export LD_LIBRARY_PATH=/usr/lib/jni
for i in /usr/share/davmail/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -Xmx512M -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@"
exec java -Xmx512M -Dsun.net.inetaddr.ttl=60 -cp /usr/share/davmail/davmail.jar:/usr/share/java/swt.jar:$CLASSPATH davmail.DavGateway "$@"