bump to version 0.99.18

This commit is contained in:
fatalerrors
2022-06-24 17:52:17 +02:00
parent e8c6f46572
commit da37fd3bae
52 changed files with 1268 additions and 435 deletions

View File

@@ -1,7 +1,7 @@
# ------------------------------------------------------------------------------
# Mail system
# This file is part of the init.sh project
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# ------------------------------------------------------------------------------
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
@@ -13,24 +13,24 @@
# * MAIL_RELAY: Name of the mail relay server
# ------------------------------------------------------------------------------
export VER_conf_mail="0.0.6"
export VER_conf_mail="0.0.7"
export DEP_conf_mail="upgrade_dist"
conf_mail()
{
prnt I "Installation de postfix..."
prnt I "Installing postfix..."
pkginst postfix
local pfmain="/etc/postfix/main.cf"
prnt I "Configuration de postfix..."
prnt I "Configuring postfix..."
install_file postfix/main.cf $pfmain
tag_file $pfmain
sed -i -e "s/@HOSTNAME@/$HOSTNAME/" -e "s/@REALM@/$REALM/" \
-e "s/@MAIL_RELAY@/$MAIL_RELAY/" $pfmain
tag_file /etc/mailname
echo $HOSTNAME.$REALM > /etc/mailname
tag_file /etc/mailname
svc_restart postfix
}
@@ -38,7 +38,7 @@ conf_mail()
precheck_conf_mail()
{
if [[ -z $REALM ]]; then
prnt E "Aucun domaine principal renseigné."
prnt E "No main domain configured, can't continue."
die 158
fi
file_must_exists postfix/main.cf