fix: права доступа для zabbix-agent на файлы данных
- atomic_write: chmod 644 на файлы (было 600 от mkstemp) - install.sh: chmod 755 на /var/lib/airflow-monitor - problems.count: grep вместо python3 (не везде доступен) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
f3e1ad7df3
commit
07b07c9087
@@ -53,6 +53,7 @@ class DataExporter:
|
||||
)
|
||||
with os.fdopen(fd, "w", encoding="utf-8") as f:
|
||||
f.write(content)
|
||||
os.chmod(tmp_path, 0o644)
|
||||
os.replace(tmp_path, str(path))
|
||||
logger.debug(
|
||||
"File written: %s (%d bytes)",
|
||||
|
||||
Reference in New Issue
Block a user