优化Harbor、Docker和Zsh安装流程,改进命令执行和文件操作

- 重构Harbor安装命令,改进容器检查和启动逻辑
- 修改Docker和DockerCompose安装方法,优化文件移动和权限设置
- 更新Zsh插件安装命令,简化git克隆过程
- 调整UnzipFile工具方法,支持更多压缩文件类型
- 修正Docker Daemon配置文件中的安装节标签
- 更新测试脚本,简化文件上传流程
This commit is contained in:
zeaslity
2025-03-11 15:59:21 +08:00
parent 06b044dabc
commit 35646ff89f
5 changed files with 92 additions and 44 deletions

View File

@@ -10,8 +10,10 @@ import (
"path/filepath"
)
// UnzipFile 解压文件, 支持ziptar.gz
// UnzipFile 解压文件, 支持zip tgz tar.gz tar
func UnzipFile(zipFile string, targetFolder string) {
log.Info("解压文件: %s, 到: %s", zipFile, targetFolder)
// 检查文件扩展名以确定解压缩方法
fileExt := filepath.Ext(zipFile)
switch fileExt {