mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
Update mw.tpl
This commit is contained in:
@@ -231,6 +231,11 @@ error_logs()
|
||||
|
||||
mw_update()
|
||||
{
|
||||
if [ -f $mw_path/task.py ];then
|
||||
echo "与后续版本差异太大,不再提供更新"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
LOCAL_ADDR=common
|
||||
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
|
||||
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
|
||||
@@ -246,6 +251,11 @@ mw_update()
|
||||
|
||||
mw_update_dev()
|
||||
{
|
||||
if [ -f $mw_path/task.py ];then
|
||||
echo "与后续版本差异太大,不再提供更新"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
LOCAL_ADDR=common
|
||||
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
|
||||
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
|
||||
|
||||
Reference in New Issue
Block a user