From d11d31dbf24ab264dc8eb6d0d22b60a0f03fadf6 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 22 Apr 2019 00:27:01 +0200 Subject: [PATCH] Fix ynh_use_logrotate with getopts $1 contains --logfile= Merged as a micro decision. --- data/helpers.d/backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/backend b/data/helpers.d/backend index 710e6299b..db7f94d4f 100644 --- a/data/helpers.d/backend +++ b/data/helpers.d/backend @@ -55,7 +55,7 @@ ynh_use_logrotate () { if [ -n "$logfile" ] then 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 else logfile="/var/log/${app}/*.log" # Without argument, use a defaut directory in /var/log