Update data/helpers.d/logrotate

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Éric Gaspar 2021-10-05 13:52:45 +02:00 committed by GitHub
parent 423eef7a62
commit 93a72a7b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}