diff options
author | erdgeist <erdgeist@erdgeist.org> | 2013-04-24 03:15:58 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2013-04-24 03:15:58 +0000 |
commit | 0ddb055c5a9fd528b0c01bd1a034dbcb7478b46a (patch) | |
tree | a0e72d3a1e2168412aab6265911c6b385ff31407 /ezjail-admin | |
parent | 9dcfe49b30e3bea80273d8e1bc9b852a3e48b431 (diff) |
Put an example retention policy in sample config
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 4 |
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 |