0.8.7
This commit is contained in:
parent
4b5f19f28f
commit
3993a3476d
3 changed files with 10 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
FROM python:3.10-slim
|
||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||
LABEL version="0.8.6"
|
||||
LABEL version="0.8.7"
|
||||
|
||||
# Create API Directory
|
||||
WORKDIR /usr/src/app
|
||||
|
|
|
@ -50,7 +50,7 @@ def appstore_update():
|
|||
library_url = const.ARTIFACT_URL + "/plugin/library/library-latest.zip"
|
||||
library_cmd = "cd /opt && wget " + library_url + " && unzip library-latest.zip "
|
||||
shell_execute.execute_command_output_all(library_cmd)
|
||||
shell_execute.execute_command_output_all("rm -rf /data/library && cp /opt/library /data")
|
||||
shell_execute.execute_command_output_all("rm -rf /data/library && cp -r /opt/library /data")
|
||||
shell_execute.execute_command_output_all("rm -rf /opt/library*")
|
||||
myLogger.info_logger("auto update success...")
|
||||
|
||||
|
|
|
@ -52,12 +52,13 @@ domain = "  Domain_set:{\n\n" \
|
|||
"    domains:域名列表\n\n" \
|
||||
"    default_domain:默认域名\n\n  }\n\n}\n\n"
|
||||
|
||||
update = "  Compare_content: 新旧版本内容{\n\n" \
|
||||
"    current_version: 当前版本,\n\n" \
|
||||
"    Update_content: {\n\n" \
|
||||
"      version: 最新版本\n\n" \
|
||||
"      date: 更新日期\n\n" \
|
||||
"      content: 更新内容\n\n    }\n\n  }\n\n}\n\n"
|
||||
update = "  Compare_content: 内容比较{\n\n" \
|
||||
"    local_version: 当前版本,\n\n" \
|
||||
"    &target_version: 最新版本\n\n" \
|
||||
"    content: 更新内容\n\n" \
|
||||
"    date: 更新日期\n\n" \
|
||||
"    update: 是否有更新\n\n" \
|
||||
"    core_compare: 是否支持升级(-1:需要升级内核 0:可以升级 1:无法支持)\n\n    }\n\n"
|
||||
|
||||
appstore_update = "  Update_flag: 更新结果(成功或失败)\n\n}\n\n"
|
||||
auto = "  auto_update: 目前的自动更新状态\n\n}\n\n"
|
||||
|
@ -440,7 +441,7 @@ def AppAutoUpdate(request: Request,auto_update: Optional[str] = Query(default=No
|
|||
get_headers(request)
|
||||
ret = {}
|
||||
ret['ResponseData'] = {}
|
||||
ret['ResponseData']['auto_update'] = manage.AppAutoUpdate(auto_update)
|
||||
ret['ResponseData']['auto_update'] = "api is not available"
|
||||
response = JSONResponse(content=ret)
|
||||
except CommandException as ce:
|
||||
ret = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue