From: erickson Date: Mon, 24 Oct 2005 18:00:25 +0000 (+0000) Subject: not allowing the code to be run as root X-Git-Tag: osrf_rel_2_0_1~1318 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f93d19bd3bcb6d01a2883b41920d6b796b6d7cf3;p=OpenSRF.git not allowing the code to be run as root git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@555 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/bin/opensrf_all b/bin/opensrf_all index a8e7fce..3d4ec42 100755 --- a/bin/opensrf_all +++ b/bin/opensrf_all @@ -99,6 +99,8 @@ function startOpenSRF { function makeMeGo { + i=$(whoami) && [ "$i" == "root" ] && echo "Cannot run as root. Exiting..." && exit; + if [ ! -z "$JSERVER" ]; then echo "Starting Chop Chop, Jabber (jserver-c)..."; startJserver; diff --git a/bin/opensrf_ctl b/bin/opensrf_ctl index 65b7fd5..e3578d7 100755 --- a/bin/opensrf_ctl +++ b/bin/opensrf_ctl @@ -12,6 +12,8 @@ function usage { function startSystem { + i=$(whoami) && [ "$i" == "root" ] && echo "Cannot run as root. Exiting..." && exit; + case $1 in "start")