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 9fe205e0763f9d3f841321a8f4a6477c14c7312d
parent e3cf35ff4b002e699d5cdb01b89ecf072ffb6468
Author: Fred Großkopf <fred@kuandu.systems>
Date:   Thu, 30 Apr 2026 22:37:25 +0200

Fixes gitpates-update.sh

to use correct paths

Diffstat:
Mgitpages-update.sh | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gitpages-update.sh b/gitpages-update.sh @@ -20,18 +20,19 @@ get_config_val() { process_repo() { repo_path=$1 - config_file=$3 + config_file=$2 repo_name=$(basename "$repo_path") + WEB_ROOT=$(get_config_val "$config_file" "WEB_ROOT") GIT_RAW=$(get_config_val "$config_file" "GIT_RAW") - if ! gitpages-mirror-git.sh "$repo_path" "$GIT_RAW/$repo_name"; then + if ! gitpages-mirror-git.sh "$repo_path" "$WEB_ROOT/$GIT_RAW"; then error "Failed to mirror $repo_name" return 1 fi # Use explicit arguments to avoid word splitting/shellcheck issues - if ! gitpages.sh -c "$config_file" "$GIT_RAW/$repo_name"; then + if ! gitpages.sh -c "$config_file" "$WEB_ROOT/$GIT_RAW/$repo_name"; then error "Failed to generate pages for $repo_name" return 1 fi @@ -67,7 +68,7 @@ main() { if [ -d "$repo_path" ]; then log "Starting update for: $repo_path (job: $jobfile)" - if process_repo "$repo_path" "" "$CONFIG_FILE"; then + if process_repo "$repo_path" "$CONFIG_FILE"; then rm -f "$jobfile" else error "Failed to process $repo_path (job: $jobfile)"