gitea : textes

This commit is contained in:
Gitouche 2022-08-07 18:39:10 +02:00
parent 91a7b7b1da
commit 20f476e95d

View file

@ -60,15 +60,15 @@ 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 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.app_desc\"}}/,${s//Plateforme collaborative de projets libres./;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\"}}/,${s//Qui peut avoir un compte ?/;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.install_desc\" | Str2html}}/,${s//Pour des raisons de capacité et de gestion, cette instance n' est pas ouverte au public./;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\"}}/,${s//Comment créer un compte ?/;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.platform_desc\" | Str2html}}/,${s//Si vous souhaitez avoir un compte, entrez en <a href="https://garbaye.fr/contact/">contact avec nous</a> et parlez nous de vos besoins./;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\"}}/,${s//Quels contenus sont acceptés ?/;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.lightweight_desc\" | Str2html}}/,${s//La forge accueille tout type de contenu tel que code source, documentation, artistique, littéraire, etc. Un usage raisonnable en espace disque est attendu de nos utilisateurs./;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\"}}/,${s//Licences libres/;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 unshare sed -i '/{{.i18n.Tr \"startpage.license_desc\" | Str2html}}/,${s//Tous les projets présents sur cette forge sont publiés sous licences libres, au sens de la Free Software Foundation./;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