Add 'CoreModules/generic/preconf.sh'
This commit is contained in:
9
CoreModules/generic/preconf.sh
Normal file
9
CoreModules/generic/preconf.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
##-------------##
|
||||
# Postfix #
|
||||
##-------------##
|
||||
|
||||
#cheking if postfix already was installed by the system and if yes it wil be removed to prevent config conflicts
|
||||
if dpkg-query -Wf'${db:Status-abbrev}' postfix 2>/dev/null | grep -q '^i'; then apt purge -y postfix; fi
|
||||
|
||||
debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||
Reference in New Issue
Block a user