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
05df84ce3b
commit
04aef64d77
@ -63,7 +63,6 @@ SKIP_IMAGES=false # they are
|
||||
REPAIR=false
|
||||
LOCALES=true # only en
|
||||
NO_SSH=false # deny port 22
|
||||
INSTALL_FTP=false # no ui yet
|
||||
INSTALL_MAIL=false # no ui yet
|
||||
IPSETS=true # currently only works with ufw
|
||||
SET_HOSTNAME_NOW=false # must be a FQDN
|
||||
@ -315,7 +314,6 @@ docker_compose_up # must be after configure_nginx
|
||||
set_premium_features # must be after docker_compose_up
|
||||
configure_modsecurity # TEMPORARY OFF FROM 0.2.5
|
||||
#setup_email # TEMPORARY OFF FROM 0.2.5
|
||||
setup_ftp # setup shared ftp service - NO UI YET!
|
||||
set_custom_hostname # set hostname if provided
|
||||
generate_and_set_ssl_for_panels # if FQDN then lets setup https
|
||||
setup_firewall_service # setup firewall
|
||||
@ -426,7 +424,6 @@ parse_args() {
|
||||
echo " --skip-ssl Skip SSL setup."
|
||||
echo " --with_modsec Enable ModSecurity for Nginx."
|
||||
echo " --no-ssh Disable port 22 and whitelist the IP address of user installing the panel."
|
||||
echo " --enable-ftp Install FTP (experimental)."
|
||||
echo " --enable-mail Install Mail (experimental)."
|
||||
echo " --post_install=<path> Specify the post install script path."
|
||||
echo " --screenshots=<url> Set the screenshots API URL."
|
||||
@ -504,9 +501,6 @@ while [[ $# -gt 0 ]]; do
|
||||
--no-ssh)
|
||||
NO_SSH=true
|
||||
;;
|
||||
--enable-ftp)
|
||||
INSTALL_FTP=true
|
||||
;;
|
||||
--enable-mail)
|
||||
INSTALL_MAIL=true
|
||||
;;
|
||||
@ -817,22 +811,6 @@ tweak_ssh(){
|
||||
|
||||
}
|
||||
|
||||
setup_ftp() {
|
||||
if [ "$INSTALL_FTP" = true ]; then
|
||||
mkdir -p /etc/openpanel/ftp/
|
||||
touch /etc/openpanel/ftp/users/all.users
|
||||
chmod 644 /etc/openpanel/ftp/all.users
|
||||
|
||||
wget -O /usr/local/admin/scripts/ftp/users https://gist.githubusercontent.com/stefanpejcic/cd63cbfeccce4f38cd16ac558ffa9bc8/raw/a1afb0891cd9d0bda36ef5a78b7f6c1183b031a2/ftp.sh
|
||||
chmod +x /usr/local/admin/scripts/ftp/users
|
||||
|
||||
echo "Installing experimental FTP service."
|
||||
cd /root && docker compose up -d ftp_env_generator
|
||||
cd /root && docker compose up -d openadmin_ftp
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
setup_email() {
|
||||
if [ "$INSTALL_MAIL" = true ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user