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/configure.ac | |
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/configure.ac')
-rw-r--r-- | portal-gui/configure.ac | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/portal-gui/configure.ac b/portal-gui/configure.ac index 4d7beae1..a2a4ef85 100644 --- a/portal-gui/configure.ac +++ b/portal-gui/configure.ac @@ -33,10 +33,10 @@ AC_SUBST(MYRPKI_TOOL) if test x$prefix = xNONE; then prefix=$ac_default_prefix fi -eval 'exp_datarootdir='$datarootdir -AC_SUBST(MEDIADIR, "$exp_datarootdir/$PACKAGE_NAME/media") -AC_SUBST(TEMPLATEDIR, "$exp_datarootdir/$PACKAGE_NAME/rpkigui/templates") -AC_SUBST(INSTDIR, "$exp_datarootdir/$PACKAGE_NAME") +eval 'exp_datadir='$datadir +AC_SUBST(MEDIADIR, "$exp_datadir/$PACKAGE_NAME/media") +AC_SUBST(TEMPLATEDIR, "$exp_datadir/$PACKAGE_NAME/rpkigui/templates") +AC_SUBST(INSTDIR, "$exp_datadir/$PACKAGE_NAME") AC_MSG_RESULT([installing portal-gui into $INSTDIR]) if test "x$DATABASE_PATH" = x; then @@ -52,6 +52,12 @@ fi AC_MSG_RESULT([Toplevel resource directory is $CONFDIR]) AC_SUBST(CONFDIR) +if test "x$USER" = x; then + AC_MSG_ERROR('Must specify the user that the apache daemons runs with USER=<user>') +fi +AC_MSG_RESULT([Apache runs as user $USER]) +AC_SUBST(USER) + # source: http://blog.leosoto.com/2008/04/django-secretkey-generation.html AC_SUBST(SECRET_KEY, `$PYTHON -c 'import random; print "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)])'`) |