You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
426 B
21 lines
426 B
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
. .drone/common.sh
|
|
|
|
# set FQDN in /etc/hosts
|
|
add_fqdn_to_hosts $(get_ip_addr $(hostname)) mail
|
|
add_fqdn_to_hosts $(get_ip_addr auth1) auth1
|
|
|
|
[ -f venv/bin/activate ] && . venv/bin/activate
|
|
python tests/MockMailmanServer.py &
|
|
python tests/MockSMTPServer.py &
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt update
|
|
apt install -y netcat-openbsd
|
|
auth_setup mail
|
|
|
|
# sync with phosphoric-acid
|
|
nc -l 0.0.0.0 9000 &
|
|
|