From f93d19bd3bcb6d01a2883b41920d6b796b6d7cf3 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 24 Oct 2005 18:00:25 +0000 Subject: [PATCH] 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 --- bin/opensrf_all | 2 ++ bin/opensrf_ctl | 2 ++ 2 files changed, 4 insertions(+) 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") -- 2.43.2