From e10d995746585f2e25d58645262167654a718870 Mon Sep 17 00:00:00 2001 From: RATDAD Date: Sat, 13 Dec 2025 21:03:57 -0500 Subject: opt/auth.sh dissolved into entrypoint. --- opt/auth.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 opt/auth.sh (limited to 'opt/auth.sh') 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 -- cgit v1.2.3-70-g09d2