From d1dc0237d314a8a443037c2f007795ab8d737e5b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 29 Jun 2012 16:28:05 +0200 Subject: [PATCH 1/2] Remove settings.json.template_windows Use settings.json.template --- bin/buildForWindows.sh | 2 +- bin/installOnWindows.bat | 2 +- settings.json.template_windows | 48 ---------------------------------- 3 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 settings.json.template_windows diff --git a/bin/buildForWindows.sh b/bin/buildForWindows.sh index 6e46e29a..99f9bb08 100755 --- a/bin/buildForWindows.sh +++ b/bin/buildForWindows.sh @@ -41,7 +41,7 @@ echo "do a normal unix install first..." bin/installDeps.sh || exit 1 echo "copy the windows settings template..." -cp settings.json.template_windows settings.json +cp settings.json.template settings.json echo "resolve symbolic links..." cp -rL node_modules node_modules_resolved diff --git a/bin/installOnWindows.bat b/bin/installOnWindows.bat index 0e3e2099..f015a544 100644 --- a/bin/installOnWindows.bat +++ b/bin/installOnWindows.bat @@ -32,7 +32,7 @@ del /S var\minified* echo _ echo Setting up settings.json... -IF NOT EXIST settings.json copy settings.json.template_windows settings.json +IF NOT EXIST settings.json copy settings.json.template settings.json echo _ echo Installed Etherpad-lite! \ No newline at end of file diff --git a/settings.json.template_windows b/settings.json.template_windows deleted file mode 100644 index 35b54d8d..00000000 --- a/settings.json.template_windows +++ /dev/null @@ -1,48 +0,0 @@ -/* - This file must be valid JSON. But comments are allowed - - Please edit settings.json, not settings.json.template -*/ -{ - //Ip and port which etherpad should bind at - "ip": "0.0.0.0", - "port" : 9001, - - //The Type of the database. You can choose between sqlite and mysql - "dbType" : "dirty", - //the database specific settings - "dbSettings" : { - "filename" : "var/dirty.db" - }, - - /* An Example of MySQL Configuration - "dbType" : "mysql", - "dbSettings" : { - "user" : "root", - "host" : "localhost", - "password": "", - "database": "store" - }, - */ - - //the default text of a pad - "defaultPadText" : "Welcome to Etherpad Lite!\n\nThis pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!\n\nEtherpad Lite on Github: http:\/\/j.mp/ep-lite\n", - - /* Users must have a session to access pads. This effectively allows only group pads to be accessed. */ - "requireSession" : false, - - /* Users may edit pads but not create new ones. Pad creation is only via the API. This applies both to group pads and regular pads. */ - "editOnly" : false, - - /* if true, all css & js will be minified before sending to the client. This will improve the loading performance massivly, - but makes it impossible to debug the javascript/css */ - "minify" : false, - - /* This is the path to the Abiword executable. Setting it to null, disables abiword. - Abiword is needed to enable the import/export of pads*/ - "abiword" : null, - - /* cache 6 hours = 1000*60*60*6 */ - "maxAge": 21600000 - -} From 799a5768c76a9298d85cd56731c618e4a82d5f93 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Thu, 5 Jul 2012 18:13:29 +0200 Subject: [PATCH 2/2] Quick hack to hide ep_etherpad-lite in plugin list --- src/static/js/admin/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/admin/plugins.js b/src/static/js/admin/plugins.js index 1372a313..742c3bb2 100644 --- a/src/static/js/admin/plugins.js +++ b/src/static/js/admin/plugins.js @@ -126,6 +126,7 @@ $(document).ready(function () { socket.on('installed-results', function (data) { $("#installed-plugins *").remove(); for (plugin_name in data.results) { + if (plugin_name == "ep_etherpad-lite") continue; // Hack... var plugin = data.results[plugin_name]; var row = $("#installed-plugin-template").clone();