Skip to content

Commit

Permalink
Fix repo repacking script to work even if www-data has no login shell
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Apr 19, 2017
1 parent b65ab0b commit 79d9fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repack-repositories.sh
Expand Up @@ -6,7 +6,7 @@ RELATE_GIT_ROOT=/web/relate-git-root
for i in "$RELATE_GIT_ROOT"/*; do
echo $i
if test -d "$i/.git"; then
su $USER -c "cd $i ; git repack -a -d"
(cd $i; sudo -u $USER git repack -a -d)
fi
done

0 comments on commit 79d9fe0

Please sign in to comment.