gitpages

A collection of scripts to securely webhost and publish git repositories.
git clone https://scm.kuandu.systems/git-raw/gitpages.git
Log | Files | Refs | README | LICENSE

commit cfc8cccf25f73f933a86f23b30ba928accd506ef
parent 5bc554c90fdf2f2df425f0a38de461ffd7116547
Author: Fred Großkopf <fred@kuandu.systems>
Date:   Wed, 15 Apr 2026 11:05:46 +0200

Updates post-receive

when using git push the script is
executed from repo root.

Diffstat:
Mpost-receive.hook | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/post-receive.hook b/post-receive.hook @@ -4,10 +4,10 @@ set -eu RAW_DST="${RAW_DST:-/var/www/htdocs/scm.mydomain.com/git-raw}" HTML_DST="${HTML_DST:-/var/www/htdocs/scm.mydomain.com/git}" -CONFIG_FILE=/home/user/gitpages.conf -ASSETS_DIR=/home/user/assets +CONFIG_FILE="${CONFIG_FILE:-/home/user/gitpages.conf}" +ASSETS_DIR="${ASSETS_DIR:-/home/user/assets}" -repo_path="$(dirname "$(pwd)")" +repo_path="$(pwd)" repo="$(basename "$repo_path")" check_dir() {