From b6f86b2f4eaba45f94d42898773f00401a8da52f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 16 Aug 2023 19:28:52 +0200 Subject: [PATCH] Jinja template for the POST_INSTALL doc --- doc/POST_INSTALL.md | 8 ++++++-- doc/POST_INSTALL_fr.md | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index a961614..bc1abcd 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -1,8 +1,12 @@ -If you have requested a database, here are information to log into it: +{% if database %} + +Here are information to log into the database: - Type: __DATABASE__ - Database user: __DB_USER__ - Database name: __DB_NAME__ - Password: __DB_PWD__ -The admin documentation below also contain information on how to connect using SFTP to edit the website content. +{% endif %} + +The admin documentation below contains information on how to connect using SFTP to edit the website content. diff --git a/doc/POST_INSTALL_fr.md b/doc/POST_INSTALL_fr.md index bb975e7..32d4bce 100644 --- a/doc/POST_INSTALL_fr.md +++ b/doc/POST_INSTALL_fr.md @@ -1,8 +1,12 @@ -Si vous avez demandé une base de données, voici les informations pour s'y connecter : +{% if database %} + +Voici les informations pour se connecter à la base de donnée: - Type : __DATABASE__ - Utilisateur de la base de données : __DB_USER__ - Nom de la base de données : __DB_NAME__ - Mot de passe : __DB_PWD__ -La documentation ci-dessous contient également les informations pour se connecter en SSH et modifier le contenu du site web. +{% endif %} + +La documentation ci-dessous contient les informations pour se connecter en SSH et modifier le contenu du site web.