1
0
Fork 0

Merge branch 'config' into localApps

This commit is contained in:
pooneyy 2025-10-09 03:19:11 +08:00
commit ca67691547
No known key found for this signature in database
3 changed files with 25 additions and 0 deletions

View File

@ -55,6 +55,10 @@ def replace_version_in_dirname(old_ver_dir : str, new_version : str) -> str:
else:
return new_version
def check_directory_contents(check_dir):
print(f"{check_dir} 目录内容:")
for item in os.listdir(check_dir):
print(f" - {item}")
def safe_rename_directory(old_path: str, new_path: str) -> bool:
"""
@ -81,6 +85,7 @@ def safe_rename_directory(old_path: str, new_path: str) -> bool:
# 验证重命名是否成功
if os.path.exists(new_path) and not os.path.exists(old_path):
check_directory_contents(new_path)
print(f"✓ 重命名成功")
return True
else:

View File

@ -48,6 +48,16 @@ Dedicated to running various Docker applications with just one click. Enjoy conv
## 2. Usage
> [!TIP]
>
> The current script supports specifying the installation path for 1panel using parameters, as well as specifying the Apps to be imported. If your 1panel is installed in /opt, you just need to:
>
> ```bash
> curl -sSL https:// ... update_local_appstore.sh | bash -s -- --1panel-path /opt --app app_name_1 --app app_name_2
> ```
>
> **app_name must be the name of the folder below the repository app/**
In the `Shell Script` task type in the `1Panel` scheduled tasks, add and execute the following command, or run the following command in the terminal:
```shell

View File

@ -47,6 +47,16 @@
## 2. 使用方式
> [!TIP]
>
> 当前脚本支持使用参数指定 1panel 的安装路径以及指定想导入的Apps。假如你的 1panel 安装在 /opt你只需要
>
> ```bash
> curl -sSL https:// ... update_local_appstore.sh | bash -s -- --1panel-path /opt --app app_name_1 --app app_name_2
> ```
>
> **app_name 必须是仓库 app/ 下面的文件夹名**
`1Panel`计划任务类型`Shell 脚本`的计划任务框里,添加并执行以下命令,或者终端运行以下命令,
```shell