|
@@ -190,6 +190,7 @@ func yfkj_execLegacyCmd(client *Client, msg mqtt.Message) error {
|
|
|
utils.PlayAudioAsync(filepath.Join(baseapp.EXEC_DIR, "voices",
|
|
utils.PlayAudioAsync(filepath.Join(baseapp.EXEC_DIR, "voices",
|
|
|
"updatesuccess.wav")) // 播报升级成功语音
|
|
"updatesuccess.wav")) // 播报升级成功语音
|
|
|
yfkj_notifyUpgradeResult(client, "rtu", nil)
|
|
yfkj_notifyUpgradeResult(client, "rtu", nil)
|
|
|
|
|
+ os.Exit(0) // 升级完成后主动退出程序, 让守护进程重新启动新版本程序
|
|
|
}
|
|
}
|
|
|
default:
|
|
default:
|
|
|
return errors.New("command not supported")
|
|
return errors.New("command not supported")
|