rebuild exim on upgrades
This commit is contained in:
parent
94261c874e
commit
854e1db224
|
@ -74,6 +74,11 @@ REFRESH_GPG_KEYS_HOURS=2
|
||||||
exim_version='4.89'
|
exim_version='4.89'
|
||||||
|
|
||||||
function rebuild_exim_with_socks {
|
function rebuild_exim_with_socks {
|
||||||
|
exim_socks_installed=$(get_completion_param "exim_socks")
|
||||||
|
if [[ "$exim_socks_installed" == 'true' ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if [ ! -d "$INSTALL_DIR" ]; then
|
if [ ! -d "$INSTALL_DIR" ]; then
|
||||||
mkdir -p "$INSTALL_DIR/exim4"
|
mkdir -p "$INSTALL_DIR/exim4"
|
||||||
|
@ -156,6 +161,17 @@ function rebuild_exim_with_socks {
|
||||||
dpkg -i exim4_${exim_version}_all.deb
|
dpkg -i exim4_${exim_version}_all.deb
|
||||||
apt-mark -q hold exim4
|
apt-mark -q hold exim4
|
||||||
apt-get -yq remove --purge at
|
apt-get -yq remove --purge at
|
||||||
|
|
||||||
|
systemctl restart exim4
|
||||||
|
if [[ $(systemctl is-active exim4) != 'active' ]]; then
|
||||||
|
apt-mark -q unhold exim4
|
||||||
|
apt-get -yq install exim4 --reinstall
|
||||||
|
systemctl restart exim4
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf "$INSTALL_DIR/exim4"
|
||||||
|
|
||||||
|
set_completion_param "exim_socks" "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
function email_create_template {
|
function email_create_template {
|
||||||
|
|
|
@ -92,6 +92,7 @@ if [ -d "$PROJECT_DIR" ]; then
|
||||||
exit 453536
|
exit 453536
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rebuild_exim_with_socks
|
||||||
apt-get -yq -t stretch-backports install certbot
|
apt-get -yq -t stretch-backports install certbot
|
||||||
email_install_tls
|
email_install_tls
|
||||||
email_disable_chunking
|
email_disable_chunking
|
||||||
|
|
Loading…
Reference in New Issue