diff options
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ezjail-admin b/ezjail-admin index 41d9e89..4341cf9 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -804,12 +804,10 @@ archive) | |||
804 | [ $# -gt 1 -a "${ezjail_archive}" ] && exerr "Error: Must not specify an archive location for multiple archives." | 804 | [ $# -gt 1 -a "${ezjail_archive}" ] && exerr "Error: Must not specify an archive location for multiple archives." |
805 | 805 | ||
806 | # Either all or only some. Decide. | 806 | # Either all or only some. Decide. |
807 | [ $# -gt 0 -a "${ezjail_archivealljails}" ] && exerr "Error: Must not specify an ezjail to backup with -a." | 807 | [ $# -gt 0 -a "${ezjail_archivealljails}" ] && exerr "Error: Must not specify an ezjail to backup with -A." |
808 | 808 | ||
809 | # Fetch list of all ezjails | 809 | # Fetch list of all ezjails |
810 | if [ "${ezjail_archivealljails}" ]; then | 810 | [ "${ezjail_archivealljails}" -a -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && set - `ls | xargs rcorder` |
811 | [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && set - `ls | xargs rcorder` | ||
812 | fi | ||
813 | 811 | ||
814 | while [ $# -gt 0 ]; do | 812 | while [ $# -gt 0 ]; do |
815 | # Jail name mandatory | 813 | # Jail name mandatory |