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