From 2aaeecb09d5cbd20a6ee2c63a1392f94d2d4efb4 Mon Sep 17 00:00:00 2001 From: davor Date: Thu, 9 Aug 2012 17:13:53 +0200 Subject: Added default config. --- bin/dataset-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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." -- cgit v1.2.3