Return to repo list

remgit-scripts

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

commit c701a77e704fd89e29f91911d72a2979e9cb0706
parent a4d57cc65b0c6bc21029d8f8a83a7c3ea06bddbc
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Sun,  5 Jul 2020 15:20:04 -0500

fixed git url adding

Diffstat:
Mupstagit.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/upstagit.sh b/upstagit.sh @@ -8,6 +8,7 @@ REPO_PATH="/srv/git" WEB_PATH="/var/www/html" WEB_REPO_DIR="repos" WEB_URL="https://example.com" +GIT_ACCESS_URL="git://example.com" #For git protocol links HOME_PAGE_URL="https://example.com" #For making a link to a homepage besides the git index LOGO_URL="$WEB_URL/example.jpg" STYLE_URL="$WEB_URL/style.css" @@ -54,7 +55,7 @@ for j in $(ls $REPO_PATH); do sed -i -E -e "s,\=\"\(\.\.\/\)*style\.css\",\=\"$STYLE_URL\",g" "$k" sed -i "s,width\=\"32\" height\=\"32\",width\=\"$ICON_WIDTH\" height=\=\"$ICON_HEIGHT\",g" "$k" sed -i "s,<table>,<table id\=\"title-head\">," "$k" - sed -i "s,<\/a><\/td><\/tr><\/table>,<\/a> \| <a href\=\"git\:\/\/git\.hmagellan\.com\/$k\.git\">git clone git\:\/\/git\.hmagellan\.com\/$k\.git<\/a><\/td><\/tr><\/table>," "$k" + sed -i "s,<\/a><\/td><\/tr><\/table>,<\/a> \| git clone: <a href\=\"$GIT_ACCESS_URL\/$j\">$GIT_ACCESS_URL\/$j<\/a><\/td><\/tr><\/table>," "$k" done done