系统更新指令

This commit is contained in:
liuwei
2025-04-30 15:04:55 +08:00
parent 7b360d380c
commit ccda01f1f9

View File

@@ -135,11 +135,10 @@ class SystemUpdaterPlugin(MessagePluginInterface):
try:
# 使用相对路径调用 restart.sh 脚本
result = subprocess.run(
["./restart.sh"], # 使用对路径
["/home/liuwei/wechatbot/WeChatRobot/restart.sh"], # 使用对路径
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=os.path.join(os.path.dirname(__file__)) # 确保在当前目录执行
stderr=subprocess.PIPE
)
# 打印执行结果