migrate-contents-automation/sync-content-pro-site/tunnel-reverseproxy-restart

14 lines
331 B
Bash
Executable File

#!/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