mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
62e4a36452
commit
71325abe7d
13
INSTALL.sh
13
INSTALL.sh
@ -41,6 +41,7 @@ SKIP_IMAGES=false
|
|||||||
REPAIR=false
|
REPAIR=false
|
||||||
LOCALES=true
|
LOCALES=true
|
||||||
NO_SSH=false
|
NO_SSH=false
|
||||||
|
INSTALL_FTP=false
|
||||||
OVERLAY=false
|
OVERLAY=false
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
@ -220,6 +221,7 @@ FUNCTIONS=(
|
|||||||
|
|
||||||
run_mysql_docker_container
|
run_mysql_docker_container
|
||||||
setup_ufw
|
setup_ufw
|
||||||
|
setup_ftp
|
||||||
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
|
||||||
@ -355,6 +357,9 @@ parse_args() {
|
|||||||
--no-ssh)
|
--no-ssh)
|
||||||
NO_SSH=true
|
NO_SSH=true
|
||||||
;;
|
;;
|
||||||
|
--enable-ftp)
|
||||||
|
INSTALL_FTP=true
|
||||||
|
;;
|
||||||
--post_install=*)
|
--post_install=*)
|
||||||
# Extract path after "--post_install="
|
# Extract path after "--post_install="
|
||||||
post_install_path="${1#*=}"
|
post_install_path="${1#*=}"
|
||||||
@ -479,6 +484,14 @@ clean_apt_cache(){
|
|||||||
# TODO: cover https://github.com/debuerreotype/debuerreotype/issues/95
|
# 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() {
|
setup_ufw() {
|
||||||
if [ -z "$SKIP_FIREWALL" ]; then
|
if [ -z "$SKIP_FIREWALL" ]; then
|
||||||
echo "Setting up the firewall.."
|
echo "Setting up the firewall.."
|
||||||
|
Loading…
Reference in New Issue
Block a user