diff options
author | erdgeist <erdgeist@erdgeist.org> | 2008-01-02 06:28:04 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2008-01-02 06:28:04 +0000 |
commit | e9f9774ff663dc35749623fc9c1604893927ba8d (patch) | |
tree | 85b0ef2053627e85ca1b6c37986da54cb94d4cb8 | |
parent | 17df3ac4c4a27f7ea037c89096b9053a821b89e1 (diff) |
Allow restoring from a archive coming in from stdin
-rwxr-xr-x | ezjail-admin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 63a46be..648247c 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -373,7 +373,7 @@ create) | |||
373 | # check for restore circumstances, normally this is invoked by the restore command | 373 | # check for restore circumstances, normally this is invoked by the restore command |
374 | [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists." | 374 | [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists." |
375 | [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail." | 375 | [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail." |
376 | [ "${ezjail_fromarchive}" -a ! -r "${ezjail_fromarchive}" ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}." | 376 | [ "${ezjail_fromarchive}" -a "${ezjail_fromarchive}" != "-" -a ! -r "${ezjail_fromarchive}" ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}." |
377 | 377 | ||
378 | # | 378 | # |
379 | # All sanity checks that may lead to errors are hopefully passed here | 379 | # All sanity checks that may lead to errors are hopefully passed here |