commit d0294e04e29d6856903d6f969fd78c2ed1a22077 parent 6223885b6c2557038936b21d322852cadb65068e Author: Jake Koroman <jakekoroman@gmail.com> Date: Sun, 4 Aug 2024 21:49:55 -0400 update create script Diffstat:
M | example_create.sh | | | 14 | ++++++++++++-- |
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/example_create.sh b/example_create.sh @@ -16,9 +16,18 @@ # - sh example_create.sh # path must be absolute. -reposdir="/var/www/domains/git.codemadness.nl/home/src" +reposdir="/home/git/git/todisplay/" curdir="$(pwd)" +#stagit_files="style.css logo.png favicon.png" +stagit_files="style.css favicon.png" + +for file in ${stagit_files}; do + if test ! -e file; then + cp /home/git/opt/stagit/$file $curdir + fi +done + # make index. stagit-index "${reposdir}/"*/ > "${curdir}/index.html" @@ -31,7 +40,8 @@ for dir in "${reposdir}/"*/; do mkdir -p "${curdir}/${d}" cd "${curdir}/${d}" || continue - stagit -c ".cache" -u "https://git.codemadness.nl/$d/" "${reposdir}/${r}" + stagit -c ".cache" -u "https://git.jakekoroman.com/$d/" "${reposdir}/${r}" + cat "/home/git/opt/stagit/example_post-receive" | sed "s/{REPO_DIR}/$d/g" > "${reposdir}${r}/hooks/post-receive" && chmod +x "${reposdir}${r}/hooks/post-receive" # symlinks ln -sf log.html index.html