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:
commit
d0fad3f3b3
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue