summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin4
1 files changed, 3 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 8e24af0..099af05 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -181,6 +181,7 @@ writejailinfo () {
181 echo export jail_${ezjail_safename}_parentzfs=\"${ezjail_parentzfs}\" 181 echo export jail_${ezjail_safename}_parentzfs=\"${ezjail_parentzfs}\"
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 echo export jail_${ezjail_safename}_post_start_script=\"${ezjail_post_start_script}\"
184 echo export jail_${ezjail_safename}_retention_policy=\"${ezjail_retention_policy}\"
184 185
185 ) > "${ezjail_destconf}" 186 ) > "${ezjail_destconf}"
186 187
@@ -231,6 +232,7 @@ fetchjailinfo () {
231 eval ezjail_parentzfs=\"\$jail_${ezjail_safename}_parentzfs\" 232 eval ezjail_parentzfs=\"\$jail_${ezjail_safename}_parentzfs\"
232 eval ezjail_parameters=\"\$jail_${ezjail_safename}_parameters\" 233 eval ezjail_parameters=\"\$jail_${ezjail_safename}_parameters\"
233 eval ezjail_post_start_script=\"\$jail_${ezjail_safename}_post_start_script\" 234 eval ezjail_post_start_script=\"\$jail_${ezjail_safename}_post_start_script\"
235 eval ezjail_retention_policy=\"\$jail_${ezjail_safename}_retention_policy\"
234 236
235 # Pre ezjail-3.3-jails do not have this set 237 # Pre ezjail-3.3-jails do not have this set
236 : ${ezjail_parentzfs:=${ezjail_jailzfs}} 238 : ${ezjail_parentzfs:=${ezjail_jailzfs}}
@@ -1242,7 +1244,7 @@ snapshot)
1242 [ "${ezjail_imagetype}" = "zfs" ] && ezjail_zfs_datasets="${ezjail_parentzfs}/${ezjail_hostname} ${ezjail_zfs_datasets}" 1244 [ "${ezjail_imagetype}" = "zfs" ] && ezjail_zfs_datasets="${ezjail_parentzfs}/${ezjail_hostname} ${ezjail_zfs_datasets}"
1243 1245
1244 # Use global retention policy, if none set 1246 # Use global retention policy, if none set
1245 : ${ezjail_retention_policy=${ezjail_default_retention_policy}} 1247 : ${ezjail_retention_policy:=${ezjail_default_retention_policy}}
1246 1248
1247 for ezjail_zfs in ${ezjail_zfs_datasets}; do 1249 for ezjail_zfs in ${ezjail_zfs_datasets}; do
1248 check_for_zfs_exist ${ezjail_zfs} || continue 1250 check_for_zfs_exist ${ezjail_zfs} || continue