forcing user opensrf to start the system
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 24 Oct 2005 18:19:05 +0000 (18:19 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 24 Oct 2005 18:19:05 +0000 (18:19 +0000)
added -pipe for faster compile
creating pid and sock dirs during install

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@556 9efc2488-bf62-4759-914b-345cdb29e865

bin/opensrf_all
bin/opensrf_ctl
src/Makefile

index 3d4ec42..c337284 100755 (executable)
@@ -99,7 +99,7 @@ function startOpenSRF {
 
 function makeMeGo {
        
-       i=$(whoami) && [ "$i" == "root" ] && echo "Cannot run as root.  Exiting..." && exit;
+       i=$(whoami) && [ "$i" != "opensrf" ] && echo "Must be run as user 'opensrf'.  Exiting..." && exit;
        
        if [ ! -z "$JSERVER" ]; then
                echo "Starting Chop Chop, Jabber (jserver-c)...";
index e3578d7..9850277 100755 (executable)
@@ -12,7 +12,7 @@ function usage {
 
 function startSystem {
 
-       i=$(whoami) && [ "$i" == "root" ] && echo "Cannot run as root.  Exiting..." && exit;
+       i=$(whoami) && [ "$i" != "opensrf" ] && echo "Must be run as user 'opensrf'.  Exiting..." && exit;
 
        case $1 in 
        
index 6658318..47c86a9 100644 (file)
@@ -10,7 +10,7 @@ export INCLUDEDIR             = $(PREFIX)/include
 
 export LDLIBS                  += 
 export LDFLAGS                 += -L $(TMPDIR) -L . -L /opt/lib
-export CFLAGS                  += -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \
+export CFLAGS                  += -pipe -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \
                                                                -I$(LIBXML2_HEADERS)/libxml  -I$(TMP) -I$(TMPDIR)
 
 LIBOPENSRF                             = libopensrf.so