From 064e03de44d490349e0796ef71a3477e064a5772 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 9 May 2025 11:45:57 -0600 Subject: [PATCH] fix limits cpuset rewriting entire fiel --- usr/local/share/bastille/limits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/limits.sh b/usr/local/share/bastille/limits.sh index e841b9e7..4e038bc2 100644 --- a/usr/local/share/bastille/limits.sh +++ b/usr/local/share/bastille/limits.sh @@ -121,7 +121,7 @@ add_cpuset() { local _cpuset_rule="$(echo ${_cpus} | sed 's/ /,/g')" # Persist cpuset value - echo "${_cpuset_rule}" > "${bastille_jailsdir}/${_jail}/cpuset.conf" + echo "${_cpuset_rule}" >> "${bastille_jailsdir}/${_jail}/cpuset.conf" echo -e "Limits: ${OPTION} ${VALUE}" # Restart jail to apply cpuset