Date: Wed, 12 Dec 2012 05:21:04 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244138 - projects/portbuild/scripts Message-ID: <201212120521.qBC5L44v068700@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer) Date: Wed Dec 12 05:21:04 2012 New Revision: 244138 URL: http://svnweb.freebsd.org/changeset/base/244138 Log: Create the errorlogs/ dir for the webserver if it does not exist. Note that due to packagestats, this directory needs to be owned by a general user, not a ports-specific one. Modified: projects/portbuild/scripts/build Modified: projects/portbuild/scripts/build ============================================================================== --- projects/portbuild/scripts/build Wed Dec 12 05:02:56 2012 (r244137) +++ projects/portbuild/scripts/build Wed Dec 12 05:21:04 2012 (r244138) @@ -157,8 +157,16 @@ do_create() { chmod -R g+w ${mlist} fi - # create the links for the webserver under ../errorlogs/ + # create the links for the webserver under ../errorlogs/. Note + # non ports-<arch> ownership of this directory! errorlogs=${pbd}/errorlogs + portbuild_uid=${PORTBUILD_USER} + if [ ! -d ${errorlogs} ]; then + echo "${errorlogs} must exist and be owned by ${portbuild_uid}:${gid} mode 77x." + exit 1 + fi + chown -R ${portbuild_uid}:${gid} ${errorlogs} || exit 1 + chmod 775 ${errorlogs} || exit 1 ln -s ${buildsdir}/latest/bak/errors ${errorlogs}/${arch}-${branch}-previous ln -s ${buildsdir}/latest/bak/logs ${errorlogs}/${arch}-${branch}-previous-logs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212120521.qBC5L44v068700>