mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08: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" "--------------------------------------------------------------------------"
|
||||||
@@ -55,11 +51,12 @@ fi
|
|||||||
if [ -z "${NETALERTX_ASSUME_YES:-}" ] && [ -z "${ASSUME_YES:-}" ] && [ -z "${NETALERTX_FORCE:-}" ]; then
|
if [ -z "${NETALERTX_ASSUME_YES:-}" ] && [ -z "${ASSUME_YES:-}" ] && [ -z "${NETALERTX_FORCE:-}" ]; then
|
||||||
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"
|
||||||
printf "%b\n" "${RED}[WARNING] ${RESET}• Set up systemd services. "
|
printf "%b\n" "${RED}[WARNING] ${RESET}• Set up systemd services."
|
||||||
read -r -p "Proceed with installation? [y/N]: " _reply
|
read -r -p "Proceed with installation? [y/N]: " _reply
|
||||||
case "${_reply}" in
|
case "${_reply}" in
|
||||||
y|Y|yes|YES) ;;
|
y|Y|yes|YES) ;;
|
||||||
@@ -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