diff options
author | erdgeist <erdgeist@erdgeist.org> | 2013-04-14 17:38:54 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2013-04-14 17:38:54 +0000 |
commit | 187a3af93488df36fe89d6f79eb7da6ecba0c0d7 (patch) | |
tree | aba4f0690b54b9cc34a905b6725332f7b3a6f359 /ezjail-admin | |
parent | 712a4cdb5468e03d861a822bdf01c07a590477a9 (diff) |
Keep post_start_script jail parameters when rewriting config
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin index af62ae3..680845b 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -180,6 +180,7 @@ writejailinfo () { | |||
180 | echo export jail_${ezjail_safename}_cpuset=\"${ezjail_cpuset}\" | 180 | echo export jail_${ezjail_safename}_cpuset=\"${ezjail_cpuset}\" |
181 | echo export jail_${ezjail_safename}_fib=\"${ezjail_fib}\" | 181 | echo export jail_${ezjail_safename}_fib=\"${ezjail_fib}\" |
182 | echo export jail_${ezjail_safename}_parameters=\"${ezjail_parameters}\" | 182 | echo export jail_${ezjail_safename}_parameters=\"${ezjail_parameters}\" |
183 | echo export jail_${ezjail_safename}_post_start_script=\"${ezjail_post_start_script}\" | ||
183 | 184 | ||
184 | ) > "${ezjail_destconf}" | 185 | ) > "${ezjail_destconf}" |
185 | 186 | ||
@@ -228,6 +229,7 @@ fetchjailinfo () { | |||
228 | eval ezjail_cpuset=\"\$jail_${ezjail_safename}_cpuset\" | 229 | eval ezjail_cpuset=\"\$jail_${ezjail_safename}_cpuset\" |
229 | eval ezjail_fib=\"\$jail_${ezjail_safename}_fib\" | 230 | eval ezjail_fib=\"\$jail_${ezjail_safename}_fib\" |
230 | eval ezjail_parameters=\"\$jail_${ezjail_safename}_parameters\" | 231 | eval ezjail_parameters=\"\$jail_${ezjail_safename}_parameters\" |
232 | eval ezjail_post_start_script=\"\$jail_${ezjail_safename}_post_start_script\" | ||
231 | 233 | ||
232 | ezjail_softlink=${ezjail_jaildir}/`basename -- "${ezjail_rootdir}"` | 234 | ezjail_softlink=${ezjail_jaildir}/`basename -- "${ezjail_rootdir}"` |
233 | ezjail_devicelink="${ezjail_rootdir}.device" | 235 | ezjail_devicelink="${ezjail_rootdir}.device" |