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 aa8c525fe42d7e243bdf56be8e819d5e678b3800
parent eebb6e6e7522b72e83ca89da1a72d9b835e7cc22
Author: Fred Großkopf <fred@kuandu.systems>
Date:   Fri,  1 May 2026 11:43:20 +0200

Fix: execute install.sh from anywhere

Diffstat:
Minstall.sh | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -116,6 +116,11 @@ main() { log "Installing gitpages environment for git-user: $GIT_USER" + # Determine and switch to where this script resides + # so ./gitpages-*.sh work no matter where script is invoked from + SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" + cd "$SCRIPT_DIR" || error "cannot cd to $SCRIPT_DIR" + setup_user setup_dirs setup_spool