summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-05-18 09:21:44 +0200
committerAndreas Maunz <andreas@maunz.de>2011-05-18 09:21:44 +0200
commit7b6f2234bd52d129e1f29bd60a2e1e2b2bd8be88 (patch)
tree5231c675070991ee3fe1d8b3d4d2be8da39f408d /install
parenta82e9b42f518c2d0e5ac12237fd8a3cc2e5633d7 (diff)
Fixed checkout development as git@..., root check at beginning of install
Diffstat (limited to 'install')
-rwxr-xr-xinstall11
1 files changed, 8 insertions, 3 deletions
diff --git a/install b/install
index ce76e87..daa7d57 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
@@ -18,9 +23,9 @@ 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."