Files
Nexus-Guard-Suite/setup.sh
T
2026-05-15 23:41:10 +07:00

36 lines
1.0 KiB
Bash

#!/bin/bash
set -e
echo "======================================"
echo " Starting NexusGuard SD-WAN Suite... "
echo "======================================"
# Auto-create .env if it doesn't exist
if [ ! -f .env ]; then
echo "[!] .env file not found."
if [ -f .env.example ]; then
echo "[+] Auto-generating .env from .env.example..."
cp .env.example .env
echo "[!] IMPORTANT: Please review the .env file and change the default passwords!"
else
echo "[-] ERROR: .env.example is missing. Cannot generate .env."
exit 1
fi
else
echo "[+] .env file detected."
fi
# Make sure Docker is available
if ! command -v docker-compose &> /dev/null; then
echo "[-] ERROR: docker-compose is not installed. Please install Docker first."
exit 1
fi
echo "[+] Bringing up Docker containers..."
docker-compose up -d
echo "======================================"
echo " NexusGuard is successfully running! "
echo " API Port : 8080"
echo "======================================"