summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall17
1 files changed, 11 insertions, 6 deletions
diff --git a/install b/install
index ce76e87..6a1e84f 100755
--- a/install
+++ b/install
@@ -2,6 +2,11 @@
# Main Opentox-ruby install script
# Author: Christoph Helma, Andreas Maunz
+if [ "$(id -u)" = "0" ]; then
+ echo "This script must not be run as root" 1>&2
+ exit 1
+fi
+
LOG="/tmp/`basename $0`-log.txt"
. "./utils.sh"
echo
@@ -10,6 +15,9 @@ echo "You may need to give root password for some privileged actions right now a
echo
cmd="sudo echo -n \"\"" && run_cmd "$cmd" "Acquire privileges"
+echo "Cleaning up /tmp files."
+sudo rm -rf /tmp/openbabel* /tmp/kernlab* /tmp/ruby* /tmp/passenger*
+
. "./base-install.sh"
. "./ruby.sh"
. "./openbabel.sh"
@@ -18,14 +26,11 @@ cmd="sudo echo -n \"\"" && run_cmd "$cmd" "Acquire privileges"
if [ "$install" != "gem" ]
then
- . "./nginx.sh"
- . "./redis.sh"
- . "./opentox-webservices.sh"
+ . "./nginx.sh"
+ . "./redis.sh"
+ . "./opentox-webservices.sh"
fi
-echo "Cleaning up temp files."
-sudo rm -rf /tmp/openbabel* /tmp/kernlab* /tmp/ruby* /tmp/passenger*
-
echo
echo "Installation finished and system configured."
echo "Destination: '$OT_PREFIX'"