From bfc3e41d72791863b31da64d980975864d4985b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 3 Aug 2018 09:14:12 +0200 Subject: [PATCH] Fix helper ynh_use_logrotate --- scripts/experimental_helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/experimental_helper.sh b/scripts/experimental_helper.sh index 63f3e5c..bbd320f 100644 --- a/scripts/experimental_helper.sh +++ b/scripts/experimental_helper.sh @@ -46,7 +46,7 @@ ynh_use_logrotate () { local su_directive="" if [[ -n $user_group ]]; then su_directive=" # Run logorotate as specific user - group - su ${user_group#*/} ${user_group%/*}" + su ${user_group%/*} ${user_group#*/}" fi cat > ./${app}-logrotate << EOF # Build a config file for logrotate