diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-05-30 13:44:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-05-30 13:44:27 +0200 |
commit | 168616fbd3ff91253f5a3e0df8d4efc140f6dc03 (patch) | |
tree | c069578f9107fd6fc0748cfbbc9c39467f033597 /server | |
parent | e1753175ac33fe0c9ce12223b6806705f6e0ceaa (diff) |
Disable raw HTTP access to private repositoriesas
Diffstat (limited to 'server')
-rwxr-xr-x | server/mkrepo.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/mkrepo.sh b/server/mkrepo.sh index 9c40529..adf48fa 100755 --- a/server/mkrepo.sh +++ b/server/mkrepo.sh @@ -54,6 +54,10 @@ if [ "$public" = "y" ]; then touch $f chgrp scm $f chmod g+w $f +else + # Disable raw HTTP access to this directory. + # + echo "deny from all" >$r/.htaccess fi mv $r/hooks/post-update.sample $r/hooks/post-update |