Skip to content

Commit

Permalink
Update mw.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jul 3, 2024
1 parent dcca93b commit 130da4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/init.d/mw.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ mw_update()

mw_update_dev()
{
rm -rf /www/server/mdserver-web/bin

LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
Expand Down

0 comments on commit 130da4e

Please sign in to comment.