From fdd5293dd05890434c5b1660bfc44d493a4f4056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 12 May 2024 17:33:39 +0200 Subject: feat(roles/cgit): new variables structure --- roles/cgit/files/generate-static-git.sh | 28 ---------------------------- roles/cgit/files/httpd.conf | 6 ++---- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 roles/cgit/files/generate-static-git.sh (limited to 'roles/cgit/files') diff --git a/roles/cgit/files/generate-static-git.sh b/roles/cgit/files/generate-static-git.sh deleted file mode 100644 index dd0db32..0000000 --- a/roles/cgit/files/generate-static-git.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -GIT_DIR="/data/git" - -repositories="" -repo="" - -for repo in "${GIT_DIR}"/*; do - - if [ ! -f "${repo}/git-daemon-export-ok" ]; then - echo " [ERR] $(basename ${repo})" - continue - fi - - repo=$(basename "${repo}") - repositories="${repositories} ${GIT_DIR}/${repo}" - - echo " [OK ] ${repo}" - mkdir "${repo}" 2>/dev/null - (cd "${repo}" && /usr/local/bin/stagit "${GIT_DIR}/${repo}") -done - -if [ -z "$repositories" ]; then - exit 1 -fi - -echo " [#] ${repositories}" -/usr/local/bin/stagit-index ${repositories} > index.html diff --git a/roles/cgit/files/httpd.conf b/roles/cgit/files/httpd.conf index 238acf0..313776e 100644 --- a/roles/cgit/files/httpd.conf +++ b/roles/cgit/files/httpd.conf @@ -1,9 +1,7 @@ - -# httpd ~~ /etc/httpd.conf # managed by Ansible -server "default" { - listen on * port 1234 +server "{{ cgit__domain_name }}" { + listen on * port {{ cgit__listen_port }} root "/htdocs/stagit" location match "style.css" { -- cgit v1.2.3