A stab at fixing the make-cgit list script.
This commit is contained in:
parent
c6783d0391
commit
8d70839c02
1 changed files with 7 additions and 6 deletions
|
@ -6,16 +6,17 @@
|
|||
# Looking for git repos.
|
||||
#
|
||||
newfile=`mktemp`
|
||||
target=/srv/git/repositories
|
||||
|
||||
ls > $newfile
|
||||
cd /srv/git/repositories/
|
||||
for d in `ls`; do
|
||||
if [ ! -L $d ] && [ -d $d ]; then
|
||||
for f in `ls $d`; do
|
||||
echo $d/$f >> $newfile;
|
||||
ls $target > $newfile
|
||||
for d in `ls $target`; do
|
||||
if [ ! -L $target/$d ] && [ -d $target/$d ]; then
|
||||
for f in `ls $target/$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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue