rc_cgroup.sh: do not add newline when writing group2 values

Fixes: #407
This commit is contained in:
William Hubbs 2021-03-15 16:58:52 -05:00
parent de77674663
commit 08d518b7fe

View File

@ -200,7 +200,7 @@ cgroup2_set_limits()
[ -z "${value}" ] && continue
[ ! -f "${rc_cgroup_path}/${key}" ] && continue
veinfo "${RC_SVCNAME}: cgroups: setting ${key} to ${value}"
printf "%s\n" "${value}" > "${rc_cgroup_path}/${key}"
printf "%s" "${value}" > "${rc_cgroup_path}/${key}"
done
return 0
}