summaryrefslogtreecommitdiff
path: root/init.d/50vcs-perm
blob: 4dd080b7784849a3c3e6b0bbc0f90270da8c8868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ "$VCS" = git ]; then
	chmod 700 .git
elif [ "$VCS" = hg ]; then
	chmod 700 .hg
elif [ "$VCS" = bzr ]; then
	chmod 700 .bzr
elif [ "$VCS" = darcs ]; then
	chmod 700 _darcs
fi