From caee6179a9a40564a406bf3fa6e4b15eeab1c926 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Mar 2010 22:42:05 +0000 Subject: Added Hello World --- etherpad/bin/run-local.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/etherpad/bin/run-local.sh b/etherpad/bin/run-local.sh index 72b0cc1..2056eb0 100755 --- a/etherpad/bin/run-local.sh +++ b/etherpad/bin/run-local.sh @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +echo "Hi!" mkdir -p data/appjet MXRAM="1G" -- cgit v1.2.3-1-g7c22 From 0e75a52fd267bb4442a7bffd5ed9d64de3923075 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Mar 2010 17:51:50 +0000 Subject: Added script to check java-version and availability --- etherpad/bin/rebuildjar.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etherpad/bin/rebuildjar.sh b/etherpad/bin/rebuildjar.sh index 9e802c2..fc05194 100755 --- a/etherpad/bin/rebuildjar.sh +++ b/etherpad/bin/rebuildjar.sh @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +bin/java-version.sh + if [ -z "$JAR" ]; then if [ ! -z `which fastjar` ]; then JAR=fastjar -- cgit v1.2.3-1-g7c22 From d0570f4c98520a05c978b821eff4b077147eeeb3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Mar 2010 17:53:32 +0000 Subject: Fixed bug on export of java-script --- etherpad/bin/java-version.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 etherpad/bin/java-version.sh diff --git a/etherpad/bin/java-version.sh b/etherpad/bin/java-version.sh new file mode 100755 index 0000000..639920b --- /dev/null +++ b/etherpad/bin/java-version.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# This script attempts to find an existing installation of Java that meets a minimum version +# requirement on a Linux machine. If it is successful, it will export a JAVA_HOME environment +# variable that can be used by another calling script. +# +# To specify the required version, set the REQUIRED_VERSION to the major version required, +# e.g. 1.3, but not 1.3.1. +REQUIRED_VERSION=1.6 + +# Transform the required version string into a number that can be used in comparisons +REQUIRED_VERSION=`echo $REQUIRED_VERSION | sed -e 's;\.;0;g'` +# Check JAVA_HOME directory to see if Java version is adequate +if [ $JAVA_HOME ] +then + JAVA_EXE=$JAVA_HOME/bin/java + $JAVA_EXE -version 2> tmp.ver + VERSION=`cat tmp.ver | grep "java version" | awk '{ print substr($3, 2, length($3)-2); }'` + echo $VERSION + rm tmp.ver + VERSION=`echo $VERSION | awk '{ print substr($1, 1, 3); }' | sed -e 's;\.;0;g'` + if [ $VERSION ] + then + if [ $VERSION -ge $REQUIRED_VERSION ] + then + JAVA_HOME=`echo $JAVA_EXE | awk '{ print substr($1, 1, length($1)-9); }'` + else + JAVA_HOME= + fi + else + JAVA_HOME= + fi +fi + +# If the existing JAVA_HOME directory is adequate, then leave it alone +# otherwise, use 'locate' to search for other possible java candidates and +# check their versions. +if [ $JAVA_HOME ] +then + : +else + for JAVA_EXE in `locate bin/java | grep java$ | xargs echo` + do + if [ $JAVA_HOME ] + then + : + else + $JAVA_EXE -version 2> tmp.ver 1> /dev/null + VERSION=`cat tmp.ver | grep "java version" | awk '{ print substr($3, 2, length($3)-2); }'` + rm tmp.ver + VERSION=`echo $VERSION | awk '{ print substr($1, 1, 3); }' | sed -e 's;\.;0;g'` + if [ $VERSION ] + then + if [ $VERSION -ge $REQUIRED_VERSION ] + then + JAVA_HOME=`echo $JAVA_EXE` + else + echo "JAVA Version too old - Please install a new Java version" + fi + fi + fi + done +fi + +# If the correct Java version is detected, then export the JAVA_HOME environment variable +if [ $JAVA_HOME ] +then + `export JAVA_HOME="$JAVA_HOME"` + export JAVA_HOME + #echo $JAVA_HOME +fi + + -- cgit v1.2.3-1-g7c22 From 8ee63d95651a1cd673ce82794db64ae1d61f78b7 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Mar 2010 18:42:41 +0000 Subject: Removed need for License --- etherpad/src/etherpad/control/pro/pro_main_control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etherpad/src/etherpad/control/pro/pro_main_control.js b/etherpad/src/etherpad/control/pro/pro_main_control.js index 6a04655..f151091 100644 --- a/etherpad/src/etherpad/control/pro/pro_main_control.js +++ b/etherpad/src/etherpad/control/pro/pro_main_control.js @@ -70,7 +70,7 @@ function render_main() { renderFramed('pro/pro_home.ejs', { isEvaluation: licensing.isEvaluation(), - evalExpDate: licensing.getLicense().expiresDate, + // evalExpDate: licensing.getLicense().expiresDate, account: getSessionProAccount(), isPNE: pne_utils.isPNE(), pneVersion: pne_utils.getVersionString(), -- cgit v1.2.3-1-g7c22 From bb52de2259c58d36265c8af63c5c141e07ed466a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Mar 2010 18:46:40 +0000 Subject: Change Pro Account login to HTTP instead of HTTPS --- etherpad/src/etherpad/pro/pro_accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etherpad/src/etherpad/pro/pro_accounts.js b/etherpad/src/etherpad/pro/pro_accounts.js index cdecd0d..97585a3 100644 --- a/etherpad/src/etherpad/pro/pro_accounts.js +++ b/etherpad/src/etherpad/pro/pro_accounts.js @@ -512,7 +512,7 @@ function getFullNameById(id) { function getTempSigninUrl(account, tempPass) { return [ - 'https://', httpsHost(pro_utils.getFullProHost()), '/ep/account/sign-in?', + 'http://', httpsHost(pro_utils.getFullProHost()), '/ep/account/sign-in?', 'uid=', account.id, '&tp=', tempPass ].join(''); } -- cgit v1.2.3-1-g7c22 From e24352483b7efc151e6b5995bddac3c89d04a6cc Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Mar 2010 19:20:04 +0000 Subject: Fixed .txt file import - NOT open office import, just basic text import --- infrastructure/net.appjet.oui/main.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infrastructure/net.appjet.oui/main.scala b/infrastructure/net.appjet.oui/main.scala index 42cd268..8181fdf 100644 --- a/infrastructure/net.appjet.oui/main.scala +++ b/infrastructure/net.appjet.oui/main.scala @@ -220,9 +220,9 @@ object main { val handler = new Context(server, "/", Context.NO_SESSIONS | Context.NO_SECURITY); handler.addServlet(new ServletHolder(new OuiServlet), "/"); -// val filterHolder = new FilterHolder(new MultipartFilter()); -// filterHolder.setInitParameter("uploadDir", System.getProperty("java.io.tmpdir")); -// handler.addFilter(filterHolder, "/*", 1); + val filterHolder = new FilterHolder(new MultipartFilter()); + filterHolder.setInitParameter("uploadDir", System.getProperty("java.io.tmpdir")); + handler.addFilter(filterHolder, "/*", 1); global.context = handler; -- cgit v1.2.3-1-g7c22 From 4711943f422a2dfd047805eb088200425c2d1476 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Wed, 31 Mar 2010 23:24:56 +0200 Subject: Revert "Added Hello World" This reverts commit caee6179a9a40564a406bf3fa6e4b15eeab1c926. --- etherpad/bin/run-local.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/etherpad/bin/run-local.sh b/etherpad/bin/run-local.sh index 2056eb0..72b0cc1 100755 --- a/etherpad/bin/run-local.sh +++ b/etherpad/bin/run-local.sh @@ -14,7 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -echo "Hi!" mkdir -p data/appjet MXRAM="1G" -- cgit v1.2.3-1-g7c22 From 8e23148936c5aa043e7f6bfe56edc8b0f3a20b43 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Wed, 31 Mar 2010 23:53:44 +0200 Subject: Revert "Change Pro Account login to HTTP instead of HTTPS" This should ideally be done from teh config-file. Anyway, the pro-pad system needs a greater review / cleanup. This reverts commit bb52de2259c58d36265c8af63c5c141e07ed466a. --- etherpad/src/etherpad/pro/pro_accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etherpad/src/etherpad/pro/pro_accounts.js b/etherpad/src/etherpad/pro/pro_accounts.js index 97585a3..cdecd0d 100644 --- a/etherpad/src/etherpad/pro/pro_accounts.js +++ b/etherpad/src/etherpad/pro/pro_accounts.js @@ -512,7 +512,7 @@ function getFullNameById(id) { function getTempSigninUrl(account, tempPass) { return [ - 'http://', httpsHost(pro_utils.getFullProHost()), '/ep/account/sign-in?', + 'https://', httpsHost(pro_utils.getFullProHost()), '/ep/account/sign-in?', 'uid=', account.id, '&tp=', tempPass ].join(''); } -- cgit v1.2.3-1-g7c22