Merge pull request 'fix: set TTS bridge secret ownership' (#22) from fix/tts-secret-owner-20260813130906 into main

This commit is contained in:
sascha 2026-08-13 13:09:09 +02:00
commit 0d9a43c8f6

3
app.py
View file

@ -1914,7 +1914,8 @@ for filename, value in files.items():
if path.is_dir(): if path.is_dir():
path.rmdir() path.rmdir()
path.write_text(value) path.write_text(value)
os.chmod(path, 0o600) os.chown(path, 10001, 10001)
os.chmod(path, 0o400)
""".format(files_json=json.dumps(files)) """.format(files_json=json.dumps(files))
encoded = base64.b64encode(installer.encode()).decode() encoded = base64.b64encode(installer.encode()).decode()
command = f"sudo python3 -c {__import__('shlex').quote(f'import base64;exec(base64.b64decode({encoded!r}))')}" command = f"sudo python3 -c {__import__('shlex').quote(f'import base64;exec(base64.b64decode({encoded!r}))')}"