Some new features of Zope 2.11: * ZODB 3.8 with blob support (binary large objects) * Zope 3.4 integration * transactional Mailhost implementation * lots of minor improvements and fixes For more information on what is new in this release, see the CHANGES.txt files for the release: http://www.zope.org/Products/Zope/2.11.0/CHANGES.txt
38 lines
955 B
Text
38 lines
955 B
Text
$NetBSD: patch-ah,v 1.1.1.1 2008/06/21 10:39:31 taca Exp $
|
|
|
|
# set owner/group for Zone instance's some directories.
|
|
|
|
--- utilities/mkzopeinstance.py.orig 2007-10-29 22:09:41.000000000 +0900
|
|
+++ utilities/mkzopeinstance.py
|
|
@@ -32,8 +32,14 @@ import os
|
|
import shutil
|
|
import sys
|
|
import copyzopeskel
|
|
+import pwd
|
|
+import grp
|
|
|
|
def main():
|
|
+ dirs = ['log', 'var']
|
|
+ user = '@ZOPE_USER@'
|
|
+ group = '@ZOPE_GROUP@'
|
|
+
|
|
try:
|
|
opts, args = getopt.getopt(sys.argv[1:],
|
|
"hu:d:s:",
|
|
@@ -124,6 +130,16 @@ def main():
|
|
copyzopeskel.copyskel(skelsrc, skeltarget, None, None, **kw)
|
|
if user and password:
|
|
write_inituser(inituser, user, password)
|
|
+ try:
|
|
+ u = pwd.getpwnam(user)
|
|
+ g = grp.getgrnam(group)
|
|
+
|
|
+ for d in dirs:
|
|
+ p = os.path.join(instancehome, d)
|
|
+ os.chown(p, u.pw_uid, g.gr_gid)
|
|
+ except:
|
|
+ sys.exit(1)
|
|
+
|
|
|
|
def usage(stream, msg=None):
|
|
if msg:
|