Return to repo list


A collection of scripts for use with a simple remote git service.
Return to

commit d9c021f1c236c82f188f570b4159db2f93556fc8
parent cd9ad7d42b2ee76928aab3fa325f2eb711442b55
Author: Erik Letson <>
Date:   Sun,  5 Jul 2020 14:49:49 -0500

added link to home

Diffstat: | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ b/ @@ -8,6 +8,7 @@ REPO_PATH="/srv/git" WEB_PATH="/var/www/html" WEB_REPO_DIR="repos" WEB_URL="" +HOME_PAGE_URL="" #For making a link to a homepage besides the git index LOGO_URL="$WEB_URL/example.jpg" STYLE_URL="$WEB_URL/style.css" ICON_WIDTH="32" @@ -44,6 +45,7 @@ sed -i -E -e "s,src\=\".*logo\.png\",src\=\"$LOGO_URL\",g" "$WEB_PATH/index.html sed -i -E -e "s,href\=\".*style\.css\",href\=\"$STYLE_URL\",g" "$WEB_PATH/index.html" sed -i "s,width\=\"32\" height\=\"32\",width\=\"$ICON_WIDTH\" height\=\"$ICON_HEIGHT\",g" "$WEB_PATH/index.html" sed -i "s,<table>,<table id\=\"title-head\">," "$WEB_PATH/index.html" +sed -i "s,<\/td><\/tr>,<a href\=\"$HOME_PAGE_URL\">Return Home<\/a><\/td><\/tr>," "$WEB_PATH/index.html" for j in $(ls $REPO_PATH); do for k in $(ls -R -a1 $WEB_PATH/$WEB_REPO_DIR/* | find $WEB_PATH/$WEB_REPO_DIR | grep ".html$"); do