summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authordavor <vorgrimmlerdavid@gmx.de>2012-08-16 18:39:41 +0200
committerdavor <vorgrimmlerdavid@gmx.de>2012-08-16 18:39:41 +0200
commit74b54508a1d3ec42a46a1d5096f1f6b315ff97e4 (patch)
treeae78083eb0e776de60a57e0582c1478c183814b7 /bin
parentbf4f2b770f56a1a279bc06b3ee25c851852bfd3b (diff)
Added functions from utils.sh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/opentox-test-install20
1 files changed, 5 insertions, 15 deletions
diff --git a/bin/opentox-test-install b/bin/opentox-test-install
index e9d10e3..0d27d14 100755
--- a/bin/opentox-test-install
+++ b/bin/opentox-test-install
@@ -30,11 +30,8 @@ RUBY_DIR="$HOME/.rbenv/versions/$RUBY_NUM_VER"
# # # Install
-LOG="$OT_PREFIX/tmp/`basename $0`.log"
check_utils "rbenv find"
-echo
-echo "Installation ('$LOG'):"
-echo
+check_log $SELF
if [ "$OT_BRANCH" = "development" ]; then
cmd="test -d $OT_PREFIX/opentox-client" && run_cmd "$cmd" "Opentox-client"
@@ -47,17 +44,10 @@ fi
echo
install_with_bundler
-echo
-echo "Installation finished."
-echo
-echo "IMPORTANT: How to configure your system:"
-echo "IMPORTANT: a) Include '$OT_UI_CONF' in shell startup (e.g. ~/.bashrc)."
-echo "IMPORTANT: b) Manually source '$OT_UI_CONF' every time."
-echo "IMPORTANT: The command in both cases: '. $OT_UI_CONF'"
-echo "IMPORTANT: NOW would be the best time to configure!"
-echo
-echo "Thank you for your attention."
-echo
+# config
+[ -f $OT_CONFIG_DIR/config/$SELF.rb ] || cp $OT_DEFAULT_CONF $OT_CONFIG_DIR/config/$SELF.rb
+
+notify
# return to wd
cd "$DIR"