From: Damian Myrda Date: Sat, 7 Sep 2024 21:05:24 +0000 (-0500) Subject: Rearrange scripts X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=db8dd6d9d71c74aafc18e73801fab5a708174c8c;p=p8d.git Rearrange scripts --- 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"