24 lines
457 B
Bash
24 lines
457 B
Bash
|
|
#!/bin/bash
|
|||
|
|
|
|||
|
|
DEBUG_PACKAGES=(procps)
|
|||
|
|
POSTFIX_PACKAGES=(postfix)
|
|||
|
|
DOVECOT_PACKAGES=(dovecot-core dovecot-imapd dovecot-ldap)
|
|||
|
|
RSPAMD_PACKAGES=(rspamd redis-server)
|
|||
|
|
FAIL2BAN_PACKAGES=(fail2ban)
|
|||
|
|
|
|||
|
|
PACKAGES=(
|
|||
|
|
tini
|
|||
|
|
supervisor
|
|||
|
|
${DEBUG_PACKAGES[@]}
|
|||
|
|
${POSTFIX_PACKAGES[@]}
|
|||
|
|
${DOVECOT_PACKAGES[@]}
|
|||
|
|
# ${RSPAMD_PACKAGES[@]}
|
|||
|
|
# ${FAIL2BAN_PACKAGES[@]}
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
apt update
|
|||
|
|
apt install -y "${PACKAGES[@]}"
|
|||
|
|
apt clean
|
|||
|
|
|
|||
|
|
# TODO: post-installation goes here
|