#!/bin/bash # Test Nginx configuration if sudo /usr/local/nginx/sbin/nginx -t; then echo "✅ Nginx config test passed, reloading..." if sudo /usr/local/nginx/sbin/nginx -s reload; then echo "🚀 Nginx reloaded successfully!" else echo "❌ Nginx reload failed!" fi else echo "❌ Nginx config test failed!" fi