mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-19 02:42:15 +00:00
20 lines
672 B
Bash
20 lines
672 B
Bash
#!/bin/bash
|
|
|
|
# In order to install Mail-in-a-Box on an ubuntu:bionic docker container, this
|
|
# script will help fix up the base ubuntu image to allow for installation
|
|
|
|
# Fixup some dependencies missing from the ubuntu:bionic image
|
|
apt update
|
|
apt install locales curl lsb-release net-tools git grep systemd -y
|
|
|
|
# Clone the Mail-in-a-Box repository to your home directory
|
|
cd ~
|
|
git clone https://github.com/kaibae19/mailinabox
|
|
|
|
# The setup script will fail to find the IP addresses of the container
|
|
ifconfig | grep inet6 | grep global
|
|
ifconfig | grep inet | grep -v 127
|
|
echo "Export PRIVATE_IP and PUBLIC_IPV6 as variables before launching the setup script."
|
|
|
|
cd ~/mailinabox
|