From 71325abe7d3e745554aae0b31b7f033ec92b1610 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Wed, 22 May 2024 13:15:01 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/INSTALL.sh b/INSTALL.sh index bce08194..b01f95e0 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -41,6 +41,7 @@ SKIP_IMAGES=false REPAIR=false LOCALES=true NO_SSH=false +INSTALL_FTP=false OVERLAY=false # Paths @@ -220,6 +221,7 @@ FUNCTIONS=( run_mysql_docker_container setup_ufw + setup_ftp setup_opencli install_all_locales helper_function_for_nginx_on_aws_and_azure @@ -355,6 +357,9 @@ parse_args() { --no-ssh) NO_SSH=true ;; + --enable-ftp) + INSTALL_FTP=true + ;; --post_install=*) # Extract path after "--post_install=" post_install_path="${1#*=}" @@ -479,6 +484,14 @@ clean_apt_cache(){ # TODO: cover https://github.com/debuerreotype/debuerreotype/issues/95 } + +setup_ftp() { + if [ "$INSTALL_FTP" = true ]; then + curl -sSL https://raw.githubusercontent.com/stefanpejcic/OpenPanel-FTP/master/setup.sh | bash + fi +} + + setup_ufw() { if [ -z "$SKIP_FIREWALL" ]; then echo "Setting up the firewall.."