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

28 lines
642 B
Bash
Raw Permalink 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
set -e
DEBUG_PACKAGES=(procps)
# libpam-pgsql is only available in debian sid at the moment; building in compile step
DB_PACKAGES=(sasl2-bin libsasl2-modules postgresql)
POSTFIX_PACKAGES=(postfix postfix-pgsql)
DOVECOT_PACKAGES=(dovecot-core dovecot-imapd dovecot-pgsql)
RSPAMD_PACKAGES=(rspamd redis-server)
FAIL2BAN_PACKAGES=(fail2ban)
PACKAGES=(
tini
supervisor
${DEBUG_PACKAGES[@]}
${DB_PACKAGES[@]}
${POSTFIX_PACKAGES[@]}
${DOVECOT_PACKAGES[@]}
# ${RSPAMD_PACKAGES[@]}
# ${FAIL2BAN_PACKAGES[@]}
)
apt update
apt install -y "${PACKAGES[@]}"
apt clean
# TODO: post-installation goes here