Ignore:
Timestamp:
Jul 6, 2010, 12:28:10 AM (14 years ago)
Author:
gdb
Message:

Added script for creating new repositories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/invirt-build-conf

    r3039 r3040  
    5454            print >>f, 'build %s %s %s' % (pocket, build_handler, acl_path(pocket))
    5555
    56     os.rename(conf_name, '/etc/remctl/conf.d/build')
     56    with atomic_write('/etc/remctl/acl/repo_admin') as f:
     57        acl = authz.expandAdmin(config.build.repo_admin, None)
     58        print >>f, '\n'.join(userToPrinc(a) for a in acl)
    5759
    58     k5login_fd, k5login_name = tempfile.mkstemp()
    59     k5login = os.fdopen(k5login_fd, 'r+')
    60     print >>k5login, '\n'.join(all_devs)
     60    with atomic_write('/etc/remctl/conf.d/repo_admin') as f:
     61        print >>f, 'create repo /usr/bin/invirt-add-repo /etc/remctl/acl/repo_admin'
    6162
    6263    with atomic_write(os.path.join(builder._REPO_DIR, '.k5login')) as f:
Note: See TracChangeset for help on using the changeset viewer.