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

Merge pull request #102 from YunoHost-Apps/fix-log-permission-new-config-category

Fix log permissions after new log options in config file
This commit is contained in:
Dante 2023-05-28 16:54:42 +01:00 committed by GitHub
commit d0fad3f3b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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