diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 57a502216..34be75bd7 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -407,6 +407,21 @@ mw_update_dev() cd ${PANEL_DIR} } +mw_dev() +{ + if [ -f ${PANEL_DIR}/task.py ];then + echo "与后续版本差异太大,不再提供更新" + exit 0 + fi + + mw_common_proxy + echo "bash <(curl -fsSL "${HTTP_PREFIX}raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh")" + bash <(curl -fsSL "${HTTP_PREFIX}raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh") + cd ${PANEL_DIR} +} + + + mw_update_venv() { rm -rf ${PANEL_DIR}/bin @@ -759,7 +774,7 @@ case "$1" in 'open') mw_open;; 'install') mw_install;; 'update') mw_update;; - 'dev') mw_update_dev;; + 'dev') mw_dev;; 'update_dev') mw_update_dev;; 'install_app') mw_install_app;; 'close_admin_path') mw_close_admin_path;;