mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix ynh_use_logrotate with getopts
$1 contains --logfile= Merged as a micro decision.
This commit is contained in:
parent
84c380ab43
commit
d11d31dbf2
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ ynh_use_logrotate () {
|
||||||
if [ -n "$logfile" ]
|
if [ -n "$logfile" ]
|
||||||
then
|
then
|
||||||
if [ "$(echo ${logfile##*.})" != "log" ]; then # Keep only the extension to check if it's a logfile
|
if [ "$(echo ${logfile##*.})" != "log" ]; then # Keep only the extension to check if it's a logfile
|
||||||
local logfile="$1/*.log" # Else, uses the directory and all logfile into it.
|
local logfile="$logfile/*.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
|
||||||
|
|
Loading…
Add table
Reference in a new issue