diff options
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)])'`) |