From db8dd6d9d71c74aafc18e73801fab5a708174c8c Mon Sep 17 00:00:00 2001 From: Damian Myrda Date: Sat, 7 Sep 2024 16:05:24 -0500 Subject: [PATCH] Rearrange scripts --- download.sh | 18 ++++++++++++++++++ setup.sh | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100755 download.sh create mode 100755 setup.sh diff --git a/download.sh b/download.sh new file mode 100755 index 0000000..fab27f4 --- /dev/null +++ b/download.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +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" +su p8d diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..372e630 --- /dev/null +++ b/setup.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +echo "setting up services" +docker compose up -d +docker compose exec -it mail setup email add damian@prime8.dev +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 compose restart mail +echo "services are set up" -- 2.43.4