From 280b4ab9c7f44dcaf5fa776dd900138e4ac08609 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 2 Jun 2011 12:15:02 +0100 Subject: [PATCH] Create a template of the settings file --- .gitignore | 3 ++- bin/run.sh | 4 ++++ settings.json => settings.json.template | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) rename settings.json => settings.json.template (90%) diff --git a/.gitignore b/.gitignore index b512c09d4..ea051b290 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +settings.json \ No newline at end of file diff --git a/bin/run.sh b/bin/run.sh index c72be42f7..1f28ab5f0 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -19,5 +19,9 @@ if [ -d "../bin" ]; then cd "../" fi +if [ ! -f "settings.json" ]; then + cp settings.json.template settings.json +fi + cd "node" node server.js diff --git a/settings.json b/settings.json.template similarity index 90% rename from settings.json rename to settings.json.template index 11084bcbf..3c985f0f3 100644 --- a/settings.json +++ b/settings.json.template @@ -1,5 +1,7 @@ /* -This file must be valid JSON. But comments are allowed + This file must be valid JSON. But comments are allowed + + Please edit settings.json, not settings.json.template */ { "port" : 9001,