Author: tmckay Date: 2011-02-17 20:11:45 +0000 (Thu, 17 Feb 2011) New Revision: 4535
Modified: trunk/cumin/Makefile Log: Create a $CUMIN_HOME/log/data.log file owned by the cumin user as part of make install. To prevent creation of the same file by cumin-admin when run by root which results in the wrong ownership.
Modified: trunk/cumin/Makefile =================================================================== --- trunk/cumin/Makefile 2011-02-16 15:58:29 UTC (rev 4534) +++ trunk/cumin/Makefile 2011-02-17 20:11:45 UTC (rev 4535) @@ -34,6 +34,13 @@ install -pm 0644 etc/cumin.* ${CUMIN_HOME}/etc install -pm 0755 etc/sysvinit-cumin ${CUMIN_HOME}/etc install -d ${CUMIN_HOME}/log + + # This log file needs to exist, otherwise if cumin-admin commands + # are run from the root account before the cumin service is started + # this file will have the wrong ownership. + touch ${CUMIN_HOME}/log/data.log + -chown cumin:cumin ${CUMIN_HOME}/log/data.log + bin/install-python-code python ${CUMIN_HOME}/python bin/install-python-code ../wooly/python ${CUMIN_HOME}/python bin/install-python-code ../rosemary/python ${CUMIN_HOME}/python