X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/4c34fc71dcfc20862723de8b62573ec2f8fbaf32..209f1da1f4b13941e75a41e1091e79bdda4c4f56:/invirt-build-conf diff --git a/invirt-build-conf b/invirt-build-conf index 2966427..1acbc9d 100755 --- a/invirt-build-conf +++ b/invirt-build-conf @@ -53,11 +53,12 @@ def main(): for pocket in config.build.pockets: print >>f, 'build %s %s %s' % (pocket, build_handler, acl_path(pocket)) - os.rename(conf_name, '/etc/remctl/conf.d/build') + with atomic_write('/etc/remctl/acl/repo_admin') as f: + acl = authz.expandAdmin(config.build.repo_admin, None) + print >>f, '\n'.join(userToPrinc(a) for a in acl) - k5login_fd, k5login_name = tempfile.mkstemp() - k5login = os.fdopen(k5login_fd, 'r+') - print >>k5login, '\n'.join(all_devs) + with atomic_write('/etc/remctl/conf.d/repo_admin') as f: + print >>f, 'create repo /usr/bin/invirt-add-repo /etc/remctl/acl/repo_admin' with atomic_write(os.path.join(builder._REPO_DIR, '.k5login')) as f: print >>f, '\n'.join(all_devs)