Update Image
This commit is contained in:
parent
159b029b10
commit
2dd1a57d2c
@ -2,7 +2,7 @@
|
||||
|
||||
## 配置
|
||||
|
||||
- 需要两个参数:api_id、api_hash
|
||||
- 需要两个参数:`api_id`、`api_hash`
|
||||
- 如果没有,点击这个[电报链接](https://my.telegram.org/apps)申请
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ bash <(curl -fsL "https://raw.githubusercontent.com/iwumingz/sycgram/main/instal
|
||||
3. 在新环境运行sycgram管理脚本
|
||||
|
||||
|
||||
|
||||
## 自定义指令前缀及指令别名
|
||||
|
||||
- 脚本更新:都会覆盖本地的`command.yml`,原文件会备份到`command目录`。
|
||||
@ -35,7 +34,6 @@ bash <(curl -fsL "https://raw.githubusercontent.com/iwumingz/sycgram/main/instal
|
||||
- 指令别名只支持单别名和源名(不再支持多别名)
|
||||
|
||||
|
||||
|
||||
## 注意事项
|
||||
|
||||
- 脚本仅适用于Ubuntu/Debian,其它系统自行解决~
|
||||
|
@ -106,7 +106,8 @@ async def get_remote_version() -> str:
|
||||
|
||||
async def get_local_version() -> str:
|
||||
"""获取本地仓库版本"""
|
||||
cmd = f"docker inspect ghcr.io/iwumingz/{SYCGRAM}:latest -f '{{json .Config.Labels}}'"
|
||||
f = "{{json .Config.Labels}}"
|
||||
cmd = f"docker inspect ghcr.io/iwumingz/{SYCGRAM}:latest -f '{f}'"
|
||||
res = await basher(cmd, timeout=10)
|
||||
if not res.get('error'):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user