Gitea : cuztomize homepage 2

This commit is contained in:
Gitouche 2022-06-09 22:43:22 +02:00
parent 281c6a9266
commit 17d4fb3f9b
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ echo -n "Waiting for gitea to finish starting " &&
( podman logs -f ${container_name} 2>&1 & ) | grep -q 'NewServer()' &&
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.app_desc\"}}/,${s//SOUSTITRE/;b};$q1' `get_podman_volume_path ${datavolume}`/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 &&