|
@@ -43,6 +43,7 @@ REPAIR=false
|
|
LOCALES=true
|
|
LOCALES=true
|
|
NO_SSH=false
|
|
NO_SSH=false
|
|
INSTALL_FTP=false
|
|
INSTALL_FTP=false
|
|
|
|
+INSTALL_MAIL=false
|
|
OVERLAY=false
|
|
OVERLAY=false
|
|
|
|
|
|
# Paths
|
|
# Paths
|
|
@@ -225,6 +226,7 @@ FUNCTIONS=(
|
|
run_mysql_docker_container
|
|
run_mysql_docker_container
|
|
setup_ufw
|
|
setup_ufw
|
|
setup_ftp
|
|
setup_ftp
|
|
|
|
+ setup_email
|
|
setup_opencli
|
|
setup_opencli
|
|
install_all_locales
|
|
install_all_locales
|
|
helper_function_for_nginx_on_aws_and_azure
|
|
helper_function_for_nginx_on_aws_and_azure
|
|
@@ -363,6 +365,9 @@ parse_args() {
|
|
--enable-ftp)
|
|
--enable-ftp)
|
|
INSTALL_FTP=true
|
|
INSTALL_FTP=true
|
|
;;
|
|
;;
|
|
|
|
+ --enable-mail)
|
|
|
|
+ INSTALL_MAIL=true
|
|
|
|
+ ;;
|
|
--post_install=*)
|
|
--post_install=*)
|
|
# Extract path after "--post_install="
|
|
# Extract path after "--post_install="
|
|
post_install_path="${1#*=}"
|
|
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() {
|
|
setup_ufw() {
|
|
if [ -z "$SKIP_FIREWALL" ]; then
|
|
if [ -z "$SKIP_FIREWALL" ]; then
|
|
echo "Setting up the firewall.."
|
|
echo "Setting up the firewall.."
|