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

29 lines
642 B
Bash
Raw Normal View History

2026-01-28 13:42:48 +00:00
#!/bin/bash
2026-02-05 14:02:32 +00:00
set -e
2026-01-28 13:42:48 +00:00
DEBUG_PACKAGES=(procps)
2026-02-05 14:02:32 +00:00
# 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)
2026-01-28 13:42:48 +00:00
RSPAMD_PACKAGES=(rspamd redis-server)
FAIL2BAN_PACKAGES=(fail2ban)
PACKAGES=(
tini
supervisor
${DEBUG_PACKAGES[@]}
2026-02-05 14:02:32 +00:00
${DB_PACKAGES[@]}
2026-01-28 13:42:48 +00:00
${POSTFIX_PACKAGES[@]}
${DOVECOT_PACKAGES[@]}
# ${RSPAMD_PACKAGES[@]}
# ${FAIL2BAN_PACKAGES[@]}
)
apt update
apt install -y "${PACKAGES[@]}"
apt clean
# TODO: post-installation goes here