Skip to content

Commit 028a7a5

Browse files
author
Serghey Rodin
committed
workaround for weird issue on OpenVZ
1 parent 48ba0f8 commit 028a7a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bin/v-update-firewall

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ else
173173
fi
174174
fi
175175

176+
# Worarkound for OpenVZ
177+
if [ -e "/proc/vz/veinfo" ]; then
178+
dig @8.8.8.8 google.com +time=1 +tries=1 >/dev/null 2>&1
179+
if [ "$?" -ne 0 ]; then
180+
$BIN/v-stop-firewall
181+
fi
182+
fi
183+
176184

177185
#----------------------------------------------------------#
178186
# Vesta #

0 commit comments

Comments
 (0)