fix: 打包iso镜像, 增加检查docker安装情况
This commit is contained in:
@@ -7,6 +7,13 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|||||||
|
|
||||||
cd ${SCRIPT_DIR}
|
cd ${SCRIPT_DIR}
|
||||||
|
|
||||||
|
# 如果docker没有安装
|
||||||
|
if ! command -v docker &> /dev/null; then
|
||||||
|
curl -fsSL https://get.docker.com | bash # 使用官方脚本安装docker
|
||||||
|
success "Docker 安装完成"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# 如果img-installer文件夹不存在, 下载img-installer
|
# 如果img-installer文件夹不存在, 下载img-installer
|
||||||
if [ ! -d "${SCRIPT_DIR}/img-installer" ]; then
|
if [ ! -d "${SCRIPT_DIR}/img-installer" ]; then
|
||||||
git clone https://github.com/wukongdaily/img-installer.git
|
git clone https://github.com/wukongdaily/img-installer.git
|
||||||
|
|||||||
Reference in New Issue
Block a user