From 841d0d4c1260c66f0ec1f52e09e29c827570a3de Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 17 May 2006 13:07:32 +0000 Subject: Explain options left if fetching packages fails. Also explain, that "are you sure" is being answered by ezjail. --- ezjail-admin | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ezjail-admin b/ezjail-admin index 8158049..8141989 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -533,13 +533,14 @@ install) # Try all paths as stolen from sysinstall, break on success. for ezjail_path in pub/FreeBSD/releases pub/FreeBSD/snapshot pub/FreeBSD releases snapshots NO; do - [ "${ezjail_path}" = "NO" ] && exerr "Could not fetch ${pkg} from ${ezjail_ftphost}." + [ "${ezjail_path}" = "NO" ] && exerr "Could not fetch ${pkg} from ${ezjail_ftphost}. Maybe your release (${ezjail_release}) is specified incorrectly or the host ${ezjail_ftphost} does not provide that release build. Use the -r option to specify an existing release or the -h option to specify an alternative ftp server." ftp "${ezjail_ftphost}:${ezjail_path}/${ezjail_installarch}/${ezjail_release}/${pkg}/*" && break done # These actions are really ugly: sources want $1 to contain the set # of sources to install, base asks the user if he is sure, hence the # yes and the set -- all + [ "${pkg}" = "base" ] && echo "Ignore the next question, ezjail answers it for you." set -- all [ -f install.sh ] && yes | . install.sh [ $? = 0 ] || exerr "Package install script for ${pkg} failed." -- cgit v1.2.3