From 93b96fb8e08487e83e000eba46e16de63049b257 Mon Sep 17 00:00:00 2001 From: William Petit Date: Sun, 29 Sep 2019 10:08:53 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20g=C3=A9n=C3=A9ration=20mot=20de=20?= =?UTF-8?q?passe=20par=20eole-db?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmpl/gitea-db.yml | 5 ++--- tmpl/gitea.conf | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tmpl/gitea-db.yml b/tmpl/gitea-db.yml index 425fbc1..423a9c3 100644 --- a/tmpl/gitea-db.yml +++ b/tmpl/gitea-db.yml @@ -34,8 +34,7 @@ createscript: "/usr/share/eole/db/gitea/gen/00-create-gitea-db.sql" %set cnt_prefix = %%getVar('container_path_reseau', '') pwd_files: - {file: '%%cnt_prefix/etc/gitea/conf/app.ini', - pattern: 'PASSWD = ', - end_pattern: '', + pattern: 'PASSWD = `', + end_pattern: '`', owner: 'root:gitservice', mod: '660' } - diff --git a/tmpl/gitea.conf b/tmpl/gitea.conf index 3a86cc4..a0b931f 100644 --- a/tmpl/gitea.conf +++ b/tmpl/gitea.conf @@ -70,7 +70,7 @@ HOST = %%{gitea_dbserver}:%%{gitea_dbport} %end if NAME = gitea USER = gitea -PASSWD = gitea1234 +PASSWD = `gitea1234` ; For "postgres" only, either "disable", "require" or "verify-full" SSL_MODE = disable ; For "sqlite3" only