From 7cdd88bdec8944253e2fb41bae11feded8f25d07 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 24 Oct 2005 18:19:05 +0000 Subject: [PATCH] forcing user opensrf to start the system 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 | 2 +- bin/opensrf_ctl | 2 +- src/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/opensrf_all b/bin/opensrf_all index 3d4ec42..c337284 100755 --- a/bin/opensrf_all +++ b/bin/opensrf_all @@ -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)..."; diff --git a/bin/opensrf_ctl b/bin/opensrf_ctl index e3578d7..9850277 100755 --- a/bin/opensrf_ctl +++ b/bin/opensrf_ctl @@ -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 diff --git a/src/Makefile b/src/Makefile index 6658318..47c86a9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 -- 2.11.0