diff --git a/data/helpers.d/backend b/data/helpers.d/backend index d6754bbfa..2b199fd90 100644 --- a/data/helpers.d/backend +++ b/data/helpers.d/backend @@ -17,7 +17,7 @@ ynh_use_logrotate () { logfile=$1/.log # Else, uses the directory and all logfile into it. fi else - logfile="/var/log/${app}/.log" # Without argument, use a defaut directory in /var/log + logfile="/var/log/${app}/*.log" # Without argument, use a defaut directory in /var/log fi cat > ./${app}-logrotate << EOF # Build a config file for logrotate $logfile {