install_amavis.sh: interrupt installation if a perl module installaition failed.
This commit is contained in:
parent
972be2df87
commit
4994dba228
@ -3631,7 +3631,17 @@ for _module in $_needed_cpan_modules ; do
|
||||
if [[ "$?" -ne 0 ]] ; then
|
||||
installation_failed=true
|
||||
error "$(cat $tmp_err_msg)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/nno]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
|
||||
fi
|
||||
|
||||
done
|
||||
if ! $installation_failed ; then
|
||||
echo_ok
|
||||
|
Loading…
Reference in New Issue
Block a user