mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
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')"
|
local _cpuset_rule="$(echo ${_cpus} | sed 's/ /,/g')"
|
||||||
|
|
||||||
# Persist cpuset value
|
# Persist cpuset value
|
||||||
echo "${_cpuset_rule}" > "${bastille_jailsdir}/${_jail}/cpuset.conf"
|
echo "${_cpuset_rule}" >> "${bastille_jailsdir}/${_jail}/cpuset.conf"
|
||||||
echo -e "Limits: ${OPTION} ${VALUE}"
|
echo -e "Limits: ${OPTION} ${VALUE}"
|
||||||
|
|
||||||
# Restart jail to apply cpuset
|
# Restart jail to apply cpuset
|
||||||
|
|||||||
Reference in New Issue
Block a user