Update mw.tpl

pull/612/head
Mr Chen 10 months ago
parent dcca93baef
commit 130da4e311
  1. 2
      scripts/init.d/mw.tpl

@ -246,6 +246,8 @@ mw_update()
mw_update_dev() mw_update_dev()
{ {
rm -rf /www/server/mdserver-web/bin
LOCAL_ADDR=common LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then

Loading…
Cancel
Save