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
|
format: pretty-colored
|
||||||
- type: file
|
- type: file
|
||||||
format: json
|
format: json
|
||||||
filename: /var/log/__APP__
|
filename: /var/log/__APP__/__APP__.log
|
||||||
max_size: 100
|
max_size: 100
|
||||||
max_backups: 10
|
max_backups: 10
|
||||||
compress: true
|
compress: true
|
||||||
|
|
|
@ -7,12 +7,12 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
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
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|
||||||
# Optional hardening to improve security
|
# Optional hardening to improve security
|
||||||
ReadWritePaths=__FINALPATH__/
|
ReadWritePaths=__FINALPATH__/ /var/log/__APP__
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
MemoryDenyWriteExecute=true
|
MemoryDenyWriteExecute=true
|
||||||
PrivateDevices=yes
|
PrivateDevices=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue