mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
tweaks
This commit is contained in:
@@ -23,10 +23,6 @@ printf "%b\n" "-----------------------------------------------------------------
|
|||||||
printf "%b\n" "${GREEN}[UPDATING] ${RESET}Making sure the system is up to date"
|
printf "%b\n" "${GREEN}[UPDATING] ${RESET}Making sure the system is up to date"
|
||||||
printf "%b\n" "--------------------------------------------------------------------------"
|
printf "%b\n" "--------------------------------------------------------------------------"
|
||||||
|
|
||||||
# Getting up to date
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
|
|
||||||
printf "%b\n" "--------------------------------------------------------------------------"
|
printf "%b\n" "--------------------------------------------------------------------------"
|
||||||
printf "%b\n" "${GREEN}[INSTALLING] ${RESET}Running proxmox-install-netalertx.sh"
|
printf "%b\n" "${GREEN}[INSTALLING] ${RESET}Running proxmox-install-netalertx.sh"
|
||||||
printf "%b\n" "--------------------------------------------------------------------------"
|
printf "%b\n" "--------------------------------------------------------------------------"
|
||||||
@@ -56,6 +52,7 @@ if [ -z "${NETALERTX_ASSUME_YES:-}" ] && [ -z "${ASSUME_YES:-}" ] && [ -z "${NET
|
|||||||
printf "%b\n" "------------------------------------------------------------------------"
|
printf "%b\n" "------------------------------------------------------------------------"
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}This script should be run on a fresh server"
|
printf "%b\n" "${RED}[WARNING] ${RESET}This script should be run on a fresh server"
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}This script will install NetAlertX and will:"
|
printf "%b\n" "${RED}[WARNING] ${RESET}This script will install NetAlertX and will:"
|
||||||
|
printf "%b\n" "${RED}[WARNING] ${RESET}• Update OS with apt-get update/upgrade"
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}• Overwrite existing files under ${INSTALL_DIR} "
|
printf "%b\n" "${RED}[WARNING] ${RESET}• Overwrite existing files under ${INSTALL_DIR} "
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}• Wipe any existing database"
|
printf "%b\n" "${RED}[WARNING] ${RESET}• Wipe any existing database"
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}• Wipe/Set up NGINX configuration under /etc/nginx"
|
printf "%b\n" "${RED}[WARNING] ${RESET}• Wipe/Set up NGINX configuration under /etc/nginx"
|
||||||
@@ -71,6 +68,10 @@ else
|
|||||||
printf "%b\n" "--------------------------------------------------------------------------"
|
printf "%b\n" "--------------------------------------------------------------------------"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Getting up to date
|
||||||
|
apt-get update -y
|
||||||
|
apt-get upgrade -y
|
||||||
|
|
||||||
# Prompt for HTTP port (default 20211) with countdown fallback
|
# Prompt for HTTP port (default 20211) with countdown fallback
|
||||||
DEFAULT_PORT=20211
|
DEFAULT_PORT=20211
|
||||||
if [ -z "${NETALERTX_ASSUME_YES:-}" ] && [ -z "${ASSUME_YES:-}" ] && [ -z "${NETALERTX_FORCE:-}" ]; then
|
if [ -z "${NETALERTX_ASSUME_YES:-}" ] && [ -z "${ASSUME_YES:-}" ] && [ -z "${NETALERTX_FORCE:-}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user