Skip to content

Commit

Permalink
feat: support opensuse to install docker
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Feb 7, 2024
1 parent 4d4f509 commit bcd33e9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,14 @@ function packages_need() {
fi
fi
if ! which docker; then
ERROR "docker 未安装,请手动安装!"
exit 1
WARN "docker 未安装,脚本尝试自动安装..."
wget -qO- get.docker.com | bash
if which docker; then
INFO "docker 安装成功!"
else
ERROR "docker 安装失败,请手动安装!"
exit 1
fi
fi
elif [ "$1" == "apk_alpine" ]; then
if ! which curl; then
Expand Down

0 comments on commit bcd33e9

Please sign in to comment.