Roundup Tracker - Issues

Message3016

Author anonymous
Recipients
Date 2002-04-30.00:19:08
Message-id
In-reply-to
the instance_config.DATABASE and files directories 
are not group writeable, that caused some problems
for me (mail gw and web interface).

maybe you can incorporate some stuff like this
in dbinit.py (init function).
(not tested and certainly not thread save) 

if not os.path.isdir(dbdir):
    # only db and files directories should be group
    # writeable

    base=os.path.split(instance_config.DATABASE)[0]
    if not os.path.isdir(base)
        os.makedirs(base)
    try:
        oldMask=os.umask(0002)
        os.makedirs(dbdir)
    finally:
        os.umask(oldMask)





greetings 

   uwe
    
History
Date User Action Args
2009-02-03 14:23:26adminlinkissue550442 messages
2009-02-03 14:23:26admincreate