install_postfixadmin.sh: fix error installing 'database related CPAN Module'.

This commit is contained in:
Christoph 2021-09-03 22:32:02 +02:00
parent 249837373c
commit 85544c388f

View File

@ -701,7 +701,8 @@ fi
for _module in $_needed_cpan_modules ; do
cpanm -q --skip-installed $_module >> "$log_file" 2>&1
if [[ "$?" -ne 0 ]] ; then
error "$(cat $tmp_err_msg)"
cpanm -q --skip-installed --force $_module >> "$log_file" 2>&1
[[ "$?" -ne 0 ]] && _failed=true
fi
done
if $_failed ; then