Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2012 07:13:35 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r243431 - projects/portbuild/tools
Message-ID:  <201211230713.qAN7DZTb061155@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer)
Date: Fri Nov 23 07:13:35 2012
New Revision: 243431
URL: http://svnweb.freebsd.org/changeset/base/243431

Log:
  Fix the mount point.  Fix permissions on default portbuild.conf.

Modified:
  projects/portbuild/tools/addarch

Modified: projects/portbuild/tools/addarch
==============================================================================
--- projects/portbuild/tools/addarch	Fri Nov 23 07:06:24 2012	(r243430)
+++ projects/portbuild/tools/addarch	Fri Nov 23 07:13:35 2012	(r243431)
@@ -53,9 +53,10 @@ fi
 
 # create zfs instance for arch if it does not already exist.  (duplicates 'build')
 archfs=${ZFS_VOLUME}/portbuild/${arch}
+mountpoint=$(realpath ${archdir})
 if ! test_fs "${archfs}"; then
   echo "The ${archfs} filesystem does not exist.  I'll create and mount it for you."
-  zfs create -o mountpoint=${archdir} ${archfs} || exit 1
+  zfs create -o mountpoint=${mountpoint} ${archfs} || exit 1
   chown -R ports-${arch}:portmgr ${archdir} || exit 1
   chmod -R g+w ${archdir} || exit 1
 fi
@@ -96,7 +97,7 @@ use_zfs=0
 EOF
 fi
 chown -R ports-${arch}:portmgr ${conf} || exit 1
-chmod 775 ${conf} || exit 1
+chmod 664 ${conf} || exit 1
 
 qm=${pbc}/qmanager/qmanager.py
 if [ ! -x $qm ]; then



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211230713.qAN7DZTb061155>