From b94ddfad4734b9e9b9045708b5c1aeb7c192527a Mon Sep 17 00:00:00 2001 From: SechPoint Date: Thu, 12 Mar 2026 09:10:42 +0000 Subject: [PATCH] Add pre-flight check scripts and organized deployment folders --- network-pre-check.sh | 0 pre-deployment-test.sh | 25 +++++++++++++++---------- wallarm/notes.md | 4 ---- 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 network-pre-check.sh delete mode 100644 wallarm/notes.md diff --git a/network-pre-check.sh b/network-pre-check.sh deleted file mode 100644 index e69de29..0000000 diff --git a/pre-deployment-test.sh b/pre-deployment-test.sh index 7b1666a..4fb61dc 100644 --- a/pre-deployment-test.sh +++ b/pre-deployment-test.sh @@ -1,19 +1,24 @@ #!/bin/bash # --- Styling --- -RED='\033[0;31m' -GREEN='\033[0;32m' YELLOW='\033[1;33m' -NC='\033[0m' # No Color +NC='\033[0m' -echo -e "${YELLOW}=== Sechpoint Wallarm PRE-DEPLOYMENT-TEST ===${NC}" -echo "Please answer the following questions to verify VM readiness." -echo "-------------------------------------------------------" +echo -e "${YELLOW}=== Wallarm Pre-Deployment Diagnostic ===${NC}" -# 1. Interactive Input -read -p "Enter Application Server IP/Hostname: " APP_HOST -read -p "Enter Application Server Port (e.g. 8080): " APP_PORT -echo "" +# --- THIS IS THE INTERACTIVE PART --- +# The '-p' flag stands for 'prompt' +read -p "Enter the Application Server IP or Hostname: " APP_HOST +read -p "Enter the Application Server Port (e.g., 80 or 8080): " APP_PORT + +# Check if they actually typed something +if [ -z "$APP_HOST" ] || [ -z "$APP_PORT" ]; then + echo "❌ Error: Application Server and Port are required." + exit 1 +fi + +echo -e "Testing connection to ${APP_HOST} on port ${APP_PORT}...\n" +# --- End of Interactive Part --- # 2. Check Sudo & Update Packages echo -e "${YELLOW}[1/4] Checking Sudo & Updating Package Lists...${NC}" diff --git a/wallarm/notes.md b/wallarm/notes.md deleted file mode 100644 index 9c83179..0000000 --- a/wallarm/notes.md +++ /dev/null @@ -1,4 +0,0 @@ -app1: -- url: shorty.sechpoint.app -- ip: 10.0.0.14:80 -- \ No newline at end of file