mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update data/helpers.d/logrotate
Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
parent
423eef7a62
commit
93a72a7b5f
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ 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 "$logfile"
|
||||
ynh_user_exists --username="$app" || chown $app:$app "$logfile"
|
||||
chmod o-rwx "$logfile"
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue