Fix Error. Update debian package index bevor installing packages.
This commit is contained in:
parent
ced2a28679
commit
3e5e0927f9
@ -4,6 +4,7 @@
|
||||
working_dir="$(dirname $(realpath $0))"
|
||||
conf_file="${working_dir}/conf//install_postfix_advanced.conf"
|
||||
|
||||
|
||||
_TLS_CERT_DIR=/etc/postfix/ssl
|
||||
_TLS_CERT_FILE="${_TLS_CERT_DIR}/mailserver.crt"
|
||||
_TLS_KEY_FILE="${_TLS_CERT_DIR}/mailserver.key"
|
||||
@ -339,6 +340,7 @@ if $IS_RELAY_HOST ; then
|
||||
cat << EOF >> $conf_file
|
||||
_SASL_AUTH_ENABLED=$SASL_AUTH_ENABLED
|
||||
EOF
|
||||
fi
|
||||
if [[ $? -ne 0 ]]; then
|
||||
_failed=true
|
||||
fi
|
||||
@ -351,6 +353,18 @@ fi
|
||||
[[ "$IPV6" = "disabled" ]] && IPV6=""
|
||||
|
||||
|
||||
# - Synchronise package index files with the repository
|
||||
# -
|
||||
echononl " Synchronise package index files with the repository.."
|
||||
apt-get update > error "$tmp_err_msg" 2>&1
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $tmp_err_msg)"
|
||||
fi
|
||||
|
||||
|
||||
# - Deinstall debian exim4 packages
|
||||
# -
|
||||
echononl " Deinstall debian exim4 packages"
|
||||
|
Loading…
Reference in New Issue
Block a user