瀏覽代碼

data-upgrade 进程退出码(0:升级正常退出,1:升级异常)

deason 1 月之前
父節點
當前提交
b3c350c970

+ 2 - 2
data-upgrade/src/main/java/com/qmth/boot/data/upgrade/config/DataUpgradeListener.java

@@ -48,14 +48,14 @@ public class DataUpgradeListener implements ApplicationListener<ApplicationPrepa
                 // 首次安装模式,仅执行数据初始化
                 // 首次安装模式,仅执行数据初始化
                 this.handlerInstall();
                 this.handlerInstall();
                 // 执行完后默认退出程序
                 // 执行完后默认退出程序
-                System.exit(1);
+                System.exit(0);
             }
             }
 
 
             if (RunMode.UPGRADE == properties.getRunMode()) {
             if (RunMode.UPGRADE == properties.getRunMode()) {
                 // 升级模式,仅执行数据升级
                 // 升级模式,仅执行数据升级
                 this.handlerUpgrade();
                 this.handlerUpgrade();
                 // 执行完后默认退出程序
                 // 执行完后默认退出程序
-                System.exit(1);
+                System.exit(0);
             }
             }
 
 
             // 启动模式
             // 启动模式