]> prime8.dev >> repos - p8d.git/commitdiff
Rearrange scripts
authorDamian Myrda <monkey.damianek@gmail.com>
Sat, 7 Sep 2024 21:05:24 +0000 (16:05 -0500)
committerDamian Myrda <monkey.damianek@gmail.com>
Sat, 7 Sep 2024 21:05:24 +0000 (16:05 -0500)
download.sh [new file with mode: 0755]
setup.sh [new file with mode: 0755]

diff --git a/download.sh b/download.sh
new file mode 100755 (executable)
index 0000000..fab27f4
--- /dev/null
@@ -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 (executable)
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"