From 47ccd3663cee8717045f85f65d676c17e144c630 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 24 May 2024 10:52:25 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/INSTALL.sh b/INSTALL.sh index e0f263c5..adb04f7c 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -43,6 +43,7 @@ REPAIR=false LOCALES=true NO_SSH=false INSTALL_FTP=false +INSTALL_MAIL=false OVERLAY=false # Paths @@ -225,6 +226,7 @@ FUNCTIONS=( run_mysql_docker_container setup_ufw setup_ftp + setup_email setup_opencli install_all_locales helper_function_for_nginx_on_aws_and_azure @@ -363,6 +365,9 @@ parse_args() { --enable-ftp) INSTALL_FTP=true ;; + --enable-mail) + INSTALL_MAIL=true + ;; --post_install=*) # Extract path after "--post_install=" post_install_path="${1#*=}" @@ -501,6 +506,14 @@ setup_ftp() { } + +setup_email() { + if [ "$INSTALL_MAIL" = true ]; then + echo "Installing experimental Email service." + curl -sSL https://raw.githubusercontent.com/stefanpejcic/OpenMail/master/setup.sh | bash --dovecot + fi +} + setup_ufw() { if [ -z "$SKIP_FIREWALL" ]; then echo "Setting up the firewall.."