distgit: Merge in the cgit/make_pkgs_list role

Having it split out was causing trouble, because distgit depends on it,
but it depends on the /srv/git folder being created, which is created
in the distgit role...

Nothing else uses this though, so merging it is the easy way out.
This commit is contained in:
Mathieu Bridon 2015-01-27 15:31:17 +01:00
parent 12dea5d384
commit a29f50a19a
3 changed files with 30 additions and 33 deletions

View file

@ -0,0 +1,14 @@
#!/bin/sh
#
# This simple script lists out the current pkgs git repos to a file.
# This speeds up cgit as it doesn't have to recurse into all dirs
# Looking for git repos.
#
newfile=`mktemp`
cd /srv/git/rpms
ls > $newfile
mv -Z $newfile /srv/git/pkgs-git-repos-list
chown apache:apache /srv/git/pkgs-git-repos-list
chmod 644 /srv/git/pkgs-git-repos-list