Fixed tunnel-reverseproxy-restart to handle nginx server restart directly in server via simple bash command
This commit is contained in:
parent
9fbf54adcb
commit
f03bc9be65
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
ssh -i /home/arul/.ssh/id_rsa root@74.208.74.61 <<EOF
|
||||
# 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
|
||||
|
|
@ -11,5 +11,3 @@ if sudo /usr/local/nginx/sbin/nginx -t; then
|
|||
else
|
||||
echo "❌ Nginx config test failed!"
|
||||
fi
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user