X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-generate;h=6e857b96797b6463bfe21ba3b60a6074a63760ed;hb=42c3cbfc51b281db155d159d4871000000707051;hp=6a2fcdd25e26bc89ba50402719cd025b30971c31;hpb=f7e0a25171591b9820a711412cd0780cd6ece12c;p=mirror%2Fuserdir-ldap.git diff --git a/ud-generate b/ud-generate index 6a2fcdd..6e857b9 100755 --- a/ud-generate +++ b/ud-generate @@ -1260,6 +1260,12 @@ def generate_host(host, global_dir, all_accounts, ssh_userkeys): if 'GITOLITE' in ExtraList: DoLink(global_dir, OutDir, "ssh-gitolite") + if 'exportOptions' in host[1]: + for entry in host[1]['exportOptions']: + v = entry.split('=',1) + if v[0] != 'GITOLITE' or len(v) != 2: continue + gitolite_accounts = filter(lambda x: IsInGroup(x, [v[1]], current_host), all_accounts) + GenSSHGitolite(gitolite_accounts, OutDir + "ssh-gitolite-%s"%(v[1],)) if 'WEB-PASSWORDS' in ExtraList: DoLink(global_dir, OutDir, "web-passwords")