From e9f9774ff663dc35749623fc9c1604893927ba8d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 2 Jan 2008 06:28:04 +0000 Subject: Allow restoring from a archive coming in from stdin --- ezjail-admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ezjail-admin b/ezjail-admin index 63a46be..648247c 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -373,7 +373,7 @@ create) # check for restore circumstances, normally this is invoked by the restore command [ "${ezjail_fromarchive}" -a "${ezjail_exists}" ] && exerr "Error: Cannot restore a jail that exists." [ "${ezjail_fromarchive}" -a "${ezjail_flavour}" ] && exerr "Error: Cannot apply flavours to a restored jail." - [ "${ezjail_fromarchive}" -a ! -r "${ezjail_fromarchive}" ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}." + [ "${ezjail_fromarchive}" -a "${ezjail_fromarchive}" != "-" -a ! -r "${ezjail_fromarchive}" ] && exerr "Error: Cannot restore from non existing archive: ${ezjail_fromarchive}." # # All sanity checks that may lead to errors are hopefully passed here -- cgit v1.2.3