1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

Fix log permissions after new log options in config file

This commit is contained in:
Dante 2023-05-28 13:07:30 +01:00
parent b27757da5d
commit 9c5a11a44a
2 changed files with 3 additions and 3 deletions

View file

@ -442,7 +442,7 @@ logging:
format: pretty-colored
- type: file
format: json
filename: /var/log/__APP__
filename: /var/log/__APP__/__APP__.log
max_size: 100
max_backups: 10
compress: true

View file

@ -7,12 +7,12 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__/mautrix-whatsapp -c=__FINALPATH__/config.yaml >> /var/log/__APP__/__APP__.log 2>&1
ExecStart=__FINALPATH__/mautrix-whatsapp -c=__FINALPATH__/config.yaml
Restart=always
RestartSec=3
# Optional hardening to improve security
ReadWritePaths=__FINALPATH__/
ReadWritePaths=__FINALPATH__/ /var/log/__APP__
NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes