Gitea : cuztomize homepage

This commit is contained in:
Gitouche 2022-06-09 22:36:00 +02:00
parent c387518fa5
commit 281c6a9266
2 changed files with 10 additions and 1 deletions

View file

@ -57,6 +57,15 @@ podman-compose --podman-run-args "--env-file .env" up -d &&
echo -n "Waiting for gitea to finish starting " && echo -n "Waiting for gitea to finish starting " &&
( podman logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' && ( podman logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' &&
echo "OK" && echo "OK" &&
podman exec --user 1000:1000 gitea gitea embedded extract --overwrite --destination /data/gitea/ 'templates/home.tmpl'
podman unshare sed -i '/{{.i18n.Tr \"startpage.install\"}}/,${s//TITRE1/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.install_desc\" | Str2html}}/,${s//TEXTE1/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.platform\"}}/,${s//TITRE2/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.platform_desc\" | Str2html}}/,${s//TEXTE1/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.lightweight\"}}/,${s//TITRE3/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.lightweight_desc\" | Str2html}}/,${s//TEXTE3/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.license\"}}/,${s//TITRE4/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman unshare sed -i '/{{.i18n.Tr \"startpage.license_desc\" | Str2html}}/,${s//TEXTE4/;b};$q1' `get_podman_volume_path ${datavolume}`/gitea/templates/home.tmpl &&
podman pod stop ${pod_name} && podman pod stop ${pod_name} &&
echo Pod built and stopped. && echo Pod built and stopped. &&
shred -u .env shred -u .env

View file

@ -9,7 +9,7 @@ weblisten_if="${GARBAYE_GITEA_ENV_WEBLISTENIF:-127.0.0.1}"
weblisten_port="${GARBAYE_GITEA_ENV_WEBLISTENPORT:-8088}" weblisten_port="${GARBAYE_GITEA_ENV_WEBLISTENPORT:-8088}"
sshlisten_if="${GARBAYE_GITEA_ENV_SSHLISTENIF:-0.0.0.0}" sshlisten_if="${GARBAYE_GITEA_ENV_SSHLISTENIF:-0.0.0.0}"
sshlisten_port="${GARBAYE_GITEA_ENV_SSHLISTENPORT:-2222}" sshlisten_port="${GARBAYE_GITEA_ENV_SSHLISTENPORT:-2222}"
GARBAYE_GITEA_APPNAME="${GARBAYE_GITEA_ENV_APPNAME:-Garbaye : forge GIT}" GARBAYE_GITEA_APPNAME="${GARBAYE_GITEA_ENV_APPNAME:-La forge Garbaye}"
GARBAYE_GITEA_SMTP_FROM="${GARBAYE_GITEA_ENV_SMTP_FROM:-git@garbaye.fr}" GARBAYE_GITEA_SMTP_FROM="${GARBAYE_GITEA_ENV_SMTP_FROM:-git@garbaye.fr}"
GARBAYE_GITEA_DOMAIN="${GARBAYE_GITEA_ENV_DOMAIN:-git.garbaye.fr}" GARBAYE_GITEA_DOMAIN="${GARBAYE_GITEA_ENV_DOMAIN:-git.garbaye.fr}"
## mandatory ENV vars ## mandatory ENV vars