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 a154f4212367d15674b9520ad4a717b2e18dc1fb
parent ce6ae4de10ad36aeaf1771fc6807785efbd1aa81
Author: Fred Großkopf <fred@kuandu.systems>
Date:   Wed, 29 Apr 2026 10:42:16 +0200

Updates install.sh

Adds logrotation config

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

diff --git a/install.sh b/install.sh @@ -51,6 +51,15 @@ EOF fi } +setup_logrotation() { + if ! grep -q "$LOG_DIR/updates.log" "$ETC_DIR"/newsyslog.conf; then + echo "$LOG_DIR/updates.log gitpages:gitpages 640 5 100 * J" >> "$ETC_DIR"/newsyslog.conf + log "Log rotation appended to $ETC_DIR/newsyslog.conf." + else + log "Log rotation already configured in $ETC_DIR/newsyslog.conf." + fi +} + main() { [ $# -ne 1 ] && usage GIT_USER="$1" @@ -73,6 +82,7 @@ main() { setup_spool install_scripts setup_config + setup_logrotation log "Installation complete." }