Changeset 3040 for trunk


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

Added script for creating new repositories

Location:
trunk/packages/invirt-dev
Files:
2 added
2 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:
  • trunk/packages/invirt-dev/setup.py

    r2637 r3040  
    2222    py_modules = ['invirt.builder'],
    2323    package_dir = {'': 'python'},
    24     scripts = ['invirtibuilder', 'invirt-build-conf', 'invirt-submit-build']
     24    scripts = ['invirtibuilder', 'invirt-build-conf', 'invirt-submit-build', 'invirt-add-repo']
    2525)
Note: See TracChangeset for help on using the changeset viewer.