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
|
#!/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
|
if sudo /usr/local/nginx/sbin/nginx -t; then
|
||||||
echo "✅ Nginx config test passed, reloading..."
|
echo "✅ Nginx config test passed, reloading..."
|
||||||
if sudo /usr/local/nginx/sbin/nginx -s reload; then
|
if sudo /usr/local/nginx/sbin/nginx -s reload; then
|
||||||
|
|
@ -11,5 +11,3 @@ if sudo /usr/local/nginx/sbin/nginx -t; then
|
||||||
else
|
else
|
||||||
echo "❌ Nginx config test failed!"
|
echo "❌ Nginx config test failed!"
|
||||||
fi
|
fi
|
||||||
EOF
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user