Update INSTALL.sh
This commit is contained in:
parent
a21a5bb0d2
commit
33c5ef4c3c
12
INSTALL.sh
12
INSTALL.sh
|
@ -5,7 +5,7 @@
|
||||||
# Usage: cd /home && (curl -sSL https://get.openpanel.co || wget -O - https://get.openpanel.co) | bash
|
# Usage: cd /home && (curl -sSL https://get.openpanel.co || wget -O - https://get.openpanel.co) | bash
|
||||||
# Author: Stefan Pejcic
|
# Author: Stefan Pejcic
|
||||||
# Created: 11.07.2023
|
# Created: 11.07.2023
|
||||||
# Last Modified: 23.05.2024
|
# Last Modified: 25.05.2024
|
||||||
# Company: openpanel.co
|
# Company: openpanel.co
|
||||||
# Copyright (c) OPENPANEL
|
# Copyright (c) OPENPANEL
|
||||||
#
|
#
|
||||||
|
@ -45,6 +45,7 @@ NO_SSH=false
|
||||||
INSTALL_FTP=false
|
INSTALL_FTP=false
|
||||||
INSTALL_MAIL=false
|
INSTALL_MAIL=false
|
||||||
OVERLAY=false
|
OVERLAY=false
|
||||||
|
IPSETS=false
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
LOG_FILE="openpanel_install.log"
|
LOG_FILE="openpanel_install.log"
|
||||||
|
@ -541,6 +542,15 @@ setup_ufw() {
|
||||||
debug_log ufw allow 22 #ssh
|
debug_log ufw allow 22 #ssh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set https://github.com/stefanpejcic/ipset-blacklist
|
||||||
|
if [ "$IPSETS" = true ]; then
|
||||||
|
if [ "$DEBUG" = true ]; then
|
||||||
|
bash <(curl -sSL https://raw.githubusercontent.com/stefanpejcic/ipset-blacklist/master/setup.sh)
|
||||||
|
else
|
||||||
|
bash <(curl -sSL https://raw.githubusercontent.com/stefanpejcic/ipset-blacklist/master/setup.sh) > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$SUPPORT_IPS" = true ]; then
|
if [ "$SUPPORT_IPS" = true ]; then
|
||||||
# Whitelisting our VPN ip addresses from https://ip.openpanel.co/ips/
|
# Whitelisting our VPN ip addresses from https://ip.openpanel.co/ips/
|
||||||
ip_list=$(curl -s https://ip.openpanel.co/ips/)
|
ip_list=$(curl -s https://ip.openpanel.co/ips/)
|
||||||
|
|
Loading…
Reference in a new issue