Fixed a bug where ezjail-admin install would indicate a failure after successfully installing the base

This commit is contained in:
erdgeist 2012-11-17 21:58:55 +00:00
parent 2368ae43a7
commit 01c79bd59d

View File

@ -1067,6 +1067,7 @@ install)
fetch "${ezjail_proto}://${ezjail_disturi}/${ezjail_path}/${ezjail_installplatform}/${ezjail_installarch}/${ezjail_release}/${pkg}.txz" || continue fetch "${ezjail_proto}://${ezjail_disturi}/${ezjail_path}/${ezjail_installplatform}/${ezjail_installarch}/${ezjail_release}/${pkg}.txz" || continue
xzdec ${pkg}.txz | tar --unlink -xpJf - -C ${DESTDIR} xzdec ${pkg}.txz | tar --unlink -xpJf - -C ${DESTDIR}
else else
[ "${ezjail_proto}" = "ftp" ] || echo "Warning: Ignoring http protocol on FreeBSD pre 9.0"
ftp ${ezjail_disturi}:${ezjail_path}/${ezjail_installarch}/${ezjail_release}/${pkg}/* || continue ftp ${ezjail_disturi}:${ezjail_path}/${ezjail_installarch}/${ezjail_release}/${pkg}/* || continue
# These actions are really ugly: sources want $1 to contain the set # 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 # of sources to install, base asks the user if he is sure, hence the
@ -1078,6 +1079,7 @@ install)
fi fi
rm -rf "${ezjail_jailtemp}" rm -rf "${ezjail_jailtemp}"
break
done done
fi fi
done done