1 Star 0 Fork 0

高杰/ok-stack-installer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.sh 617 Bytes
一键复制 编辑 原始数据 按行查看 历史
高杰 提交于 2024-08-23 08:39 . Update for v24.09
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
if [ -z "$1" ]; then
echo "Using ./install.sh {beta|latest|v{version}}"
exit 1
fi
echo "VERSION=$1"
echo "VERSION=$1" > depends/.env
python3 init.py
echo "Install is completed."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gaojie/ok-stack-installer.git
git@gitee.com:gaojie/ok-stack-installer.git
gaojie
ok-stack-installer
ok-stack-installer
docker

搜索帮助