renamed variable MAINDOM to REALM

This commit is contained in:
2021-12-08 17:35:21 +01:00
parent 97e5459163
commit 976ba1a9ee
6 changed files with 20 additions and 20 deletions

View File

@@ -9,7 +9,7 @@
# ------------------------------------------------------------------------------
# Variable:
# * HOSTNAME: Name of the host
# * MAINDOM: Default main domain name
# * REALM: Default main domain name
# * MAIL_RELAY: Name of the mail relay server
# ------------------------------------------------------------------------------
@@ -23,15 +23,15 @@ conf_mail()
prnt I "Configuration de postfix..."
installfile postfix/main.cf /etc/postfix/main.cf
sed -i -e "s/@HOSTNAME@/$HOSTNAME/" -e "s/@MAINDOM@/$MAINDOM/" \
sed -i -e "s/@HOSTNAME@/$HOSTNAME/" -e "s/@REALM@/$REALM/" \
-e "s/@MAIL_RELAY@/$MAIL_RELAY/" /etc/postfix/main.cf
echo $HOSTNAME.$MAINDOM > /etc/mailname
echo $HOSTNAME.$REALM > /etc/mailname
svc_restart postfix
}
precheck_conf_mail()
{
if [[ -z $MAINDOM ]]; then
if [[ -z $REALM ]]; then
prnt E "Aucun domaine principal renseigné."
die 158
fi