diff options
Diffstat (limited to 'opt/auth.sh')
| -rw-r--r-- | opt/auth.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/opt/auth.sh b/opt/auth.sh deleted file mode 100644 index 6d87868..0000000 --- a/opt/auth.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Check if we're enabling basic auth. -if [ "$HTTP_AUTH_PASSWORD" != "" ]; then - echo "AuthType Basic -AuthName \"CGit\" -AuthUserFile /srv/www/htdocs/cgit/.htpasswd -Require valid-user" > /srv/www/htdocs/cgit/.htaccess -htpasswd -c -b /srv/www/htdocs/cgit/.htpasswd $HTTP_AUTH_USER $HTTP_AUTH_PASSWORD -fi
\ No newline at end of file |
