mirror of
https://github.com/hackacad/bastille.git
synced 2026-03-25 18:24:58 +01:00
Merge pull request #1036 from BastilleBSD/tschettervictor-patch-2
fix limits cpuset rewriting entire fiel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user