mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1774 from OniriCorpe/logrotate
fix logs folders perms
This commit is contained in:
commit
613f41dae9
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ EOF
|
||||||
|
|
||||||
# Make sure permissions are correct (otherwise the config file could be ignored and the corresponding logs never rotated)
|
# Make sure permissions are correct (otherwise the config file could be ignored and the corresponding logs never rotated)
|
||||||
chmod 644 "/etc/logrotate.d/$app"
|
chmod 644 "/etc/logrotate.d/$app"
|
||||||
|
mkdir -p "/var/log/$app"
|
||||||
|
chmod 640 "/var/log/$app"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove the app's logrotate config.
|
# Remove the app's logrotate config.
|
||||||
|
|
Loading…
Add table
Reference in a new issue