summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavor <vorgrimmlerdavid@gmx.de>2012-08-09 17:13:53 +0200
committerdavor <vorgrimmlerdavid@gmx.de>2012-08-09 17:13:53 +0200
commit2aaeecb09d5cbd20a6ee2c63a1392f94d2d4efb4 (patch)
treec2244341b62ccefd6116532c12844dd61105668e
parent4047374866d8172bd5c430b5fb20af029e0095e8 (diff)
Added default config.
-rwxr-xr-xbin/dataset-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dataset-install b/bin/dataset-install
index daa0758..58c8463 100755
--- a/bin/dataset-install
+++ b/bin/dataset-install
@@ -53,7 +53,8 @@ echo
install_with_bundler
# config
-echo '$aa = { :uri => nil }' > $OT_CONFIG_DIR/config/$SELF.rb
+[ -f $OT_CONFIG_DIR/config/$SELF.rb ] || touch $OT_CONFIG_DIR/config/$SELF.rb
+if ! cat "$OT_DEFAULT_CONFIG" | grep "$SELF">/dev/null 2>&1; then echo '$dataset = { :uri => "http://localhost:8083/dataset" }' >> $OT_DEFAULT_CONFIG; fi
echo
echo "Installation finished."