echo "updating system"
apt update -y && apt upgrade -y
-echo "updated system"
echo "adding user p8d"
useradd -m -G sudo,docker p8d
-echo "added user p8d"
echo "cloning repo"
git clone https://github.com/moncheeta/p8d.git /p8d/
chown -R p8d /p8d/
-echo "cloned repo"
cd /p8d/
echo "now run the setup.sh script to setup services"
docker compose restart mail
docker compose exec -it mail setup alias add postmaster@prime8.dev damian@prime8.dev
docker compose exec -it mail setup config dkim
+docker exec -it mail cat /tmp/docker-mailserver/opendkim/keys/prime8.dev/mail.txt
docker compose restart mail
echo "services are set up"