mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update logrotate
This commit is contained in:
parent
ef2a8c8dbd
commit
423eef7a62
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ EOF
|
|||
mkdir --parents $(dirname "$logfile") # Create the log directory, if not exist
|
||||
cat ${app}-logrotate | $customtee /etc/logrotate.d/$app > /dev/null # Append this config to the existing config file, or replace the whole config file (depending on $customtee)
|
||||
|
||||
ynh_user_exists "$app" || chown $app:$app "/var/log/$app"
|
||||
chmod o-rwx "/var/log/$app"
|
||||
ynh_user_exists "$app" || chown $app:$app "$logfile"
|
||||
chmod o-rwx "$logfile"
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue