From 617beaac5fb665941a8a1df9bc4488c463e3f56c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 17 Dec 2015 16:34:17 +0100 Subject: [PATCH] Update make-cgit-pkgs-list.sh for namespacing --- roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh b/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh index 0ff69d2c63..4d588bde93 100644 --- a/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh +++ b/roles/cgit/make_pkgs_list/files/make-cgit-pkgs-list.sh @@ -7,8 +7,15 @@ # newfile=`mktemp` -cd /srv/git/rpms ls > $newfile +cd /srv/git/repositories/ +for d in `ls`; do + if [ ! -L $d ]; then + for f in `ls $d`; do + echo $d/$f >> $newfile; + done; + fi; +done; 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