jupiter-mail/target/scripts/build/packages.sh

23 lines
457 B
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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