diff options
author | Michael Elkins <melkins@tislabs.com> | 2010-11-11 01:40:05 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2010-11-11 01:40:05 +0000 |
commit | bae959994e1a943ab76257bfa7bb65a2efe3299a (patch) | |
tree | 73b771c91f7e36c87c3a6d0ab5019db2d554fe44 /portal-gui/Makefile.in | |
parent | a005b458fece9b8a3b7b86e38fb477f9b7592b65 (diff) |
move docs on configuring apache to README.apache
update README to detail use of the build.sh for installation instead of using
the configure script directly.
added USER= configuration variable to specify the user that the apache web server is running as.
make install target sets file permissions so that apache user can read/write them
adduser.py sets file permissions so that apacher user can read/write them
svn path=/portal-gui/Makefile.in; revision=3548
Diffstat (limited to 'portal-gui/Makefile.in')
-rw-r--r-- | portal-gui/Makefile.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/portal-gui/Makefile.in b/portal-gui/Makefile.in index d39ba869..dc05afc5 100644 --- a/portal-gui/Makefile.in +++ b/portal-gui/Makefile.in @@ -10,6 +10,8 @@ INSTDIR=@INSTDIR@ PYTHON=@PYTHON@ MYRPKIDIR=@MYRPKIDIR@ DATABASE_PATH=@DATABASE_PATH@ +USER=@USER@ +CONFDIR=@CONFDIR@ # automatically built sources BUILD=$(srcdir)/configure Makefile config.status rpkigui/settings.py \ @@ -79,7 +81,14 @@ INSTALL_FILES=\ scripts/load_csv.py \ scripts/runserver -install: $(BUILD) +.PHONY: install-perms install-data install + +install-perms: + chown $(USER) `dirname $(DATABASE_PATH)` + chown $(USER) $(DATABASE_PATH) + chown -R $(USER) $(CONFDIR) + +install-data: $(BUILD) mkdir -p `dirname $(DATABASE_PATH)` mkdir -p $(INSTDIR)/apache mkdir -p $(INSTDIR)/media/img @@ -96,3 +105,4 @@ install: $(BUILD) chmod 755 $(INSTDIR)/scripts/load_csv $(INSTDIR)/scripts/list_resources $(INSTDIR)/scripts/runserver $(INSTDIR)/scripts/adduser cd $(INSTDIR)/rpkigui && $(PYTHON) manage.py syncdb --pythonpath=$(MYRPKIDIR) +install: install-data install-perms |