summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2013-04-14 17:38:54 +0000
committererdgeist <erdgeist@erdgeist.org>2013-04-14 17:38:54 +0000
commit187a3af93488df36fe89d6f79eb7da6ecba0c0d7 (patch)
treeaba4f0690b54b9cc34a905b6725332f7b3a6f359
parent712a4cdb5468e03d861a822bdf01c07a590477a9 (diff)
Keep post_start_script jail parameters when rewriting config
-rwxr-xr-xezjail-admin2
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"