[Fix] Forgot an asterisk in logrotate helper (#320)

This commit is contained in:
Maniack Crudelis 2017-06-13 22:18:48 +02:00 committed by Alexandre Aubin
parent edcabddb63
commit a01f7ffd2b

View file

@ -17,7 +17,7 @@ ynh_use_logrotate () {
logfile=$1/.log # Else, uses the directory and all logfile into it. logfile=$1/.log # Else, uses the directory and all logfile into it.
fi fi
else 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 fi
cat > ./${app}-logrotate << EOF # Build a config file for logrotate cat > ./${app}-logrotate << EOF # Build a config file for logrotate
$logfile { $logfile {