moved old code to modules, cleanup

This commit is contained in:
fatalerrors
2021-06-18 12:02:01 +02:00
parent 8bb69f931d
commit 1a964640d9
8 changed files with 108 additions and 51 deletions

19
modules/conf_mail.sh Normal file
View File

@@ -0,0 +1,19 @@
# Mail systême
export VER_conf_mail="0.0.1"
conf_mail()
{
prnt I "Configuration de postfix..."
installfile postfix.cf /etc/postfix/main.cf
sed -i -e "s/#HOSTNAME#/$HOSTNAME/g" /etc/postfix/main.cf
svc_restart postfix
}
precheck_conf_mail()
{
: # Nothing to check
}
export -f conf_mail
export -f precheck_conf_mail