-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailcow.sh
More file actions
40 lines (28 loc) · 915 Bytes
/
Copy pathmailcow.sh
File metadata and controls
40 lines (28 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
sudo su
umask
echo "Paused to check umask result"
read foo
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
echo "Continue to install mailcow"
read foo
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh
echo "Ready to pull and start container (detached)"
read foo
docker compose pull
docker compose up -d