mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Also redact psql password if it exists
This commit is contained in:
parent
aa621abf57
commit
18f3540e2f
1 changed files with 4 additions and 1 deletions
|
@ -338,7 +338,10 @@ class OperationLogger(object):
|
|||
self.logger = None
|
||||
self._name = None
|
||||
self.data_to_redact = []
|
||||
self.data_to_redact.append(open("/etc/yunohost/mysql", "r").read().strip())
|
||||
|
||||
for filename in ["/etc/yunohost/mysql", "/etc/yunohost/psql"]:
|
||||
if os.path.exists(filename):
|
||||
self.data_to_redact.append(read_file(filename).strip())
|
||||
|
||||
self.path = OPERATIONS_PATH
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue