not allowing the code to be run as root
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 24 Oct 2005 18:00:25 +0000 (18:00 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 24 Oct 2005 18:00:25 +0000 (18:00 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@555 9efc2488-bf62-4759-914b-345cdb29e865

bin/opensrf_all
bin/opensrf_ctl

index a8e7fce..3d4ec42 100755 (executable)
@@ -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;
index 65b7fd5..e3578d7 100755 (executable)
@@ -12,6 +12,8 @@ function usage {
 
 function startSystem {
 
+       i=$(whoami) && [ "$i" == "root" ] && echo "Cannot run as root.  Exiting..." && exit;
+
        case $1 in 
        
                "start")