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
f6c63a6e67
commit
8e9c08333b
13
INSTALL.sh
13
INSTALL.sh
@ -63,7 +63,6 @@ SKIP_IMAGES=false # they are
|
|||||||
REPAIR=false
|
REPAIR=false
|
||||||
LOCALES=true # only en
|
LOCALES=true # only en
|
||||||
NO_SSH=false # deny port 22
|
NO_SSH=false # deny port 22
|
||||||
INSTALL_MAIL=false # no ui yet
|
|
||||||
IPSETS=true # currently only works with ufw
|
IPSETS=true # currently only works with ufw
|
||||||
SET_HOSTNAME_NOW=false # must be a FQDN
|
SET_HOSTNAME_NOW=false # must be a FQDN
|
||||||
CUSTOM_GB_DOCKER=false # space in gb, if not set fallback to 50% of available du
|
CUSTOM_GB_DOCKER=false # space in gb, if not set fallback to 50% of available du
|
||||||
@ -333,7 +332,6 @@ configure_nginx # setup nginx configuration files
|
|||||||
docker_compose_up # must be after configure_nginx
|
docker_compose_up # must be after configure_nginx
|
||||||
set_premium_features # must be after docker_compose_up
|
set_premium_features # must be after docker_compose_up
|
||||||
configure_modsecurity # TEMPORARY OFF FROM 0.2.5
|
configure_modsecurity # TEMPORARY OFF FROM 0.2.5
|
||||||
#setup_email # TEMPORARY OFF FROM 0.2.5
|
|
||||||
set_custom_hostname # set hostname if provided
|
set_custom_hostname # set hostname if provided
|
||||||
generate_and_set_ssl_for_panels # if FQDN then lets setup https
|
generate_and_set_ssl_for_panels # if FQDN then lets setup https
|
||||||
setup_firewall_service # setup firewall
|
setup_firewall_service # setup firewall
|
||||||
@ -444,7 +442,6 @@ parse_args() {
|
|||||||
echo " --skip-ssl Skip SSL setup."
|
echo " --skip-ssl Skip SSL setup."
|
||||||
echo " --with_modsec Enable ModSecurity for Nginx."
|
echo " --with_modsec Enable ModSecurity for Nginx."
|
||||||
echo " --no-ssh Disable port 22 and whitelist the IP address of user installing the panel."
|
echo " --no-ssh Disable port 22 and whitelist the IP address of user installing the panel."
|
||||||
echo " --enable-mail Install Mail (experimental)."
|
|
||||||
echo " --post_install=<path> Specify the post install script path."
|
echo " --post_install=<path> Specify the post install script path."
|
||||||
echo " --screenshots=<url> Set the screenshots API URL."
|
echo " --screenshots=<url> Set the screenshots API URL."
|
||||||
echo " --swap=<2> Set space in GB to be allocated for SWAP."
|
echo " --swap=<2> Set space in GB to be allocated for SWAP."
|
||||||
@ -521,9 +518,6 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--no-ssh)
|
--no-ssh)
|
||||||
NO_SSH=true
|
NO_SSH=true
|
||||||
;;
|
;;
|
||||||
--enable-mail)
|
|
||||||
INSTALL_MAIL=true
|
|
||||||
;;
|
|
||||||
--post_install=*)
|
--post_install=*)
|
||||||
post_install_path="${1#*=}"
|
post_install_path="${1#*=}"
|
||||||
;;
|
;;
|
||||||
@ -872,8 +866,8 @@ tweak_ssh(){
|
|||||||
|
|
||||||
setup_email() {
|
setup_email() {
|
||||||
if [ "$INSTALL_MAIL" = true ]; then
|
if [ "$INSTALL_MAIL" = true ]; then
|
||||||
echo "Installing experimental Email service."
|
echo "Setting email service"
|
||||||
curl -sSL https://raw.githubusercontent.com/stefanpejcic/OpenMail/master/setup.sh | bash --dovecot
|
opencli email-setup
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1371,7 +1365,8 @@ set_premium_features(){
|
|||||||
|
|
||||||
#added in 0.2.5 https://community.openpanel.org/d/91-email-support-for-openpanel-enterprise-edition
|
#added in 0.2.5 https://community.openpanel.org/d/91-email-support-for-openpanel-enterprise-edition
|
||||||
echo "Setting mailserver.."
|
echo "Setting mailserver.."
|
||||||
opencli email-server install
|
opencli email-setup
|
||||||
|
|
||||||
else
|
else
|
||||||
LICENSE="Community"
|
LICENSE="Community"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user