gonito/helpers/gitolite/mark_as_public.sh

17 lines
198 B
Bash
Raw Normal View History

2019-11-24 14:39:33 +01:00
#!/bin/bash
REPODIR="$1"
if [[ ! -d "$REPODIR" ]]
then
echo "NO DIRECTORY!"
exit 1
fi
chgrp -R git "$REPODIR"
chmod -R g+rX "$REPODIR"
find "$REPODIR" -type d -exec chmod g+s '{}' ';'