mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-17 15:50:11 +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')"
|
||||
|
||||
# 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