fix(docker): fix cgit css config

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-14 23:33:58 -08:00
parent 686c032290
commit 9424341b55
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 3 additions and 0 deletions

View file

@ -112,6 +112,7 @@ services:
environment: environment:
- AUR_CONFIG=/aurweb/conf/config - AUR_CONFIG=/aurweb/conf/config
- CGIT_CLONE_PREFIX=${AURWEB_PHP_PREFIX} - CGIT_CLONE_PREFIX=${AURWEB_PHP_PREFIX}
- CGIT_CSS=/css/cgit.css
entrypoint: /docker/cgit-entrypoint.sh entrypoint: /docker/cgit-entrypoint.sh
command: /docker/scripts/run-cgit.sh 3000 command: /docker/scripts/run-cgit.sh 3000
healthcheck: healthcheck:
@ -131,6 +132,7 @@ services:
environment: environment:
- AUR_CONFIG=/aurweb/conf/config - AUR_CONFIG=/aurweb/conf/config
- CGIT_CLONE_PREFIX=${AURWEB_FASTAPI_PREFIX} - CGIT_CLONE_PREFIX=${AURWEB_FASTAPI_PREFIX}
- CGIT_CSS=/static/css/cgit.css
entrypoint: /docker/cgit-entrypoint.sh entrypoint: /docker/cgit-entrypoint.sh
command: /docker/scripts/run-cgit.sh 3000 command: /docker/scripts/run-cgit.sh 3000
healthcheck: healthcheck:

View file

@ -8,5 +8,6 @@ sed -ri "s|clone-prefix=.*|clone-prefix=${CGIT_CLONE_PREFIX}|" /etc/cgitrc
sed -ri 's|header=.*|header=/aurweb/web/template/cgit/header.html|' /etc/cgitrc sed -ri 's|header=.*|header=/aurweb/web/template/cgit/header.html|' /etc/cgitrc
sed -ri 's|footer=.*|footer=/aurweb/web/template/cgit/footer.html|' /etc/cgitrc sed -ri 's|footer=.*|footer=/aurweb/web/template/cgit/footer.html|' /etc/cgitrc
sed -ri 's|repo\.path=.*|repo.path=/aurweb/aur.git|' /etc/cgitrc sed -ri 's|repo\.path=.*|repo.path=/aurweb/aur.git|' /etc/cgitrc
sed -ri "s|^(css)=.*$|\1=${CGIT_CSS}|" /etc/cgitrc
exec "$@" exec "$@"