diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-12 17:33:39 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-12 17:36:32 +0200 |
commit | fdd5293dd05890434c5b1660bfc44d493a4f4056 (patch) | |
tree | 204e3a16a6d301c957aa3126d7fcf0ea188b2f32 /roles/cgit/files | |
parent | a355ee21c15e915f394952abe76703d7865c991b (diff) | |
download | rules-fdd5293dd05890434c5b1660bfc44d493a4f4056.tar.gz |
feat(roles/cgit): new variables structure
Diffstat (limited to 'roles/cgit/files')
-rw-r--r-- | roles/cgit/files/generate-static-git.sh | 28 | ||||
-rw-r--r-- | roles/cgit/files/httpd.conf | 6 |
2 files changed, 2 insertions, 32 deletions
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" { |